* 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)
| 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 |
no test coverage detected