Luniv Strings Documentation
Sting manipulation done right.
Download Minified Version
Download main.min.jsAvailable Functions
Note: I am a sole maintainer of this library
isNumeric(value)
Description: Checks if the provided argument is a numeric value.
Parameters:
value: any
— The value to check.
Returns: boolean
— Returns true
if the value is numeric,
otherwise false
.
Example:
isNumeric(42); // true
isNumeric("42"); // true
isNumeric("hello"); // false
isString(value)
Description: Checks if the provided value is a string.
Parameters:
value: any
— The value to check.
Returns:
boolean
— Returns true
if the value is a string (primitive or String
object),
otherwise false
.
Example:
isString("hello"); // true
isString(new String("hi")); // true
isString(123); // false