Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

repeating

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repeating - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

6

index.js
'use strict';
var isFinite = require('is-finite');
var floor = Math.floor;

@@ -17,11 +16,10 @@ module.exports = function (str, n) {

do {
if (n % 2) {
if (n & 1) {
ret += str;
}
n = floor(n / 2);
str += str;
} while (n > 0);
} while (n = n >> 1);
return ret;
};
{
"name": "repeating",
"version": "1.0.1",
"version": "1.1.0",
"description": "Repeat a string - fast",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc