* 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 * @param {*} value The value to conve
(value)
| 12493 | * class="cm">// => 3 |
| 12494 | */ |
| 12495 | function toInteger(value) { |
| 12496 | var result = toFinite(value), |
| 12497 | remainder = result % 1; |
| 12498 | |
| 12499 | return result === result ? (remainder ? result - remainder : result) : 0; |
| 12500 | } |
| 12501 | |
| 12502 | /** |
| 12503 | * Converts `value` to an integer suitable for use as the length of an |
no test coverage detected