MCPcopy Index your code
hub / github.com/deployd/deployd / toInteger

Function toInteger

test-app/public/sinon.js:23022–23027  ·  view source on GitHub ↗

* Converts `value` to an integer. * * **Note:** This method is loosely based on * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). * * @static * @memberOf _ * @since 4.0.0 * @category Lang *

(value)

Source from the content-addressed store, hash-verified

23020 * // => 3
23021 */
23022 function toInteger(value) {
23023 var result = toFinite(value),
23024 remainder = result % 1;
23025
23026 return result === result ? (remainder ? result - remainder : result) : 0;
23027 }
23028
23029 /**
23030 * Converts `value` to an integer suitable for use as the length of an

Callers 15

baseFillFunction · 0.85
createRoundFunction · 0.85
createWrapFunction · 0.85
chunkFunction · 0.85
dropFunction · 0.85
dropRightFunction · 0.85
findIndexFunction · 0.85
findLastIndexFunction · 0.85
flattenDepthFunction · 0.85
indexOfFunction · 0.85
lastIndexOfFunction · 0.85
nthFunction · 0.85

Calls 1

toFiniteFunction · 0.85

Tested by

no test coverage detected