lodash-extra

1.0.2 • Public • Published

lodash-extra

An extended version of the popular lodash library, with lot of exciting extra utility functions

Installation

npm i lodash-extra

Usage

const _ = require('lodash-extra');

console.log(_.isBlank("Hello World"));

Functions

_.isNumericString(str) ⇒

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

_.isBlank(val) ⇒

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

_.isNotBlank(val) ⇒

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

Package Sidebar

Install

npm i lodash-extra

Weekly Downloads

0

Version

1.0.2

License

BSD

Unpacked Size

6.78 kB

Total Files

8

Last publish

Collaborators

  • sribasu