mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Bump to v3.0.1.
This commit is contained in:
committed by
John-David Dalton
parent
bb53dde973
commit
60b8329a73
@@ -1,18 +1,16 @@
|
||||
/**
|
||||
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
|
||||
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
|
||||
* Build: `lodash modern modularize exports="npm" -o ./`
|
||||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
|
||||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
* Available under MIT license <https://lodash.com/license>
|
||||
*/
|
||||
var baseToString = require('lodash._basetostring');
|
||||
|
||||
/** Native method references. */
|
||||
var floor = Math.floor;
|
||||
|
||||
/* Native method references for those with the same name as other `lodash` methods. */
|
||||
var nativeIsFinite = global.isFinite;
|
||||
var nativeFloor = Math.floor,
|
||||
nativeIsFinite = global.isFinite;
|
||||
|
||||
/**
|
||||
* Repeats the given string `n` times.
|
||||
@@ -47,7 +45,7 @@ function repeat(string, n) {
|
||||
if (n % 2) {
|
||||
result += string;
|
||||
}
|
||||
n = floor(n / 2);
|
||||
n = nativeFloor(n / 2);
|
||||
string += string;
|
||||
} while (n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user