Comparing version 1.0.1 to 1.1.0
'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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2893
37