MCPcopy
hub / github.com/Jasonette/JASONETTE-iOS / toInteger

Function toInteger

app/Jasonette/csv.js:18778–18783  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

18776 * // => 3
18777 */
18778 function toInteger(value) {
18779 var result = toFinite(value),
18780 remainder = result % 1;
18781
18782 return result === result ? (remainder ? result - remainder : result) : 0;
18783 }
18784
18785 /**
18786 * Converts `value` to an integer suitable for use as the length of an

Callers 15

baseFillFunction · 0.70
createRoundFunction · 0.70
createWrapperFunction · 0.70
chunkFunction · 0.70
dropFunction · 0.70
dropRightFunction · 0.70
findIndexFunction · 0.70
findLastIndexFunction · 0.70
flattenDepthFunction · 0.70
indexOfFunction · 0.70
lastIndexOfFunction · 0.70
nthFunction · 0.70

Calls 1

toFiniteFunction · 0.85

Tested by

no test coverage detected