Returns an integer value from the given source
Optional
the source value to inspect
the default value if the source cannot be converted
Whether to floor the source, otherwise to ceil
an integer value from the given source
David Hsing
toInteger('1'); // 1toInteger(1.3); // 1toInteger('1.7', undefined, false); // 2 Copy
toInteger('1'); // 1toInteger(1.3); // 1toInteger('1.7', undefined, false); // 2
Returns an integer value from the given source