How to use the isNullOrEmpty function from lodash

Find comprehensive JavaScript lodash.isNullOrEmpty code examples handpicked from public code repositorys.

11
12
13
14
15
16
17
18
19
20
21
22
23
}


exports.matchArray = function matchArray(val, isId){
    val = _.unsplat(val);


    var empty   =  _.isNullOrEmpty(val)
      , isArray = _.isArray(val);


    if ( isId && !empty ) 
        val = isArray 
fork icon0
star icon0
watch icon0

Other functions in lodash

Sorted by popularity

function icon

lodash.get is the most popular function in lodash (7670 examples)