An extended version of the popular lodash library, with lot of exciting extra utility functions
npm i lodash-extra
const _ = require('lodash-extra');
console.log(_.isBlank("Hello World"));
Checks if the given str
is a string representation
of a valid number or not. Float and Int both types are considered valid numbers.
Kind: static method of _
Returns:
boolean
Param | Type | Description |
---|---|---|
str | string |
Inut string |
Checks if the given val
is either null or string which is blank or empty or contains only white spaces
Kind: static method of _
Returns:
boolean
Param | Type | Description |
---|---|---|
val | any |
Input value |
Checks if the given val
is string and not null or blank or empty or contains only white spaces
Kind: static method of _
Returns:
boolean
Param | Type | Description |
---|---|---|
val | any |
Input value |