How to use the null function from is

Find comprehensive JavaScript is.null code examples handpicked from public code repositorys.

23
24
25
26
27
28
29
30
31
var is = require('is');
var isNumber = is.number;
var isObject = is.object;
var isString = is.string;
var isArray = is.array;
var isNull = is.null;
var isFunction = is.function;

function Fuzzer() { }
fork icon557
star icon0
watch icon3

36
37
38
39
40
41
42
43
44
45
/**
 * Check that a value is defined (not null nor undefined)
 */
toBeDefined: function() {
    expect.assert(
        !(is.undefined(this.actual) || is.null(this.actual)),
        'expected to be defined'
    );
    return this;
},
fork icon0
star icon0
watch icon2

+ 3 other calls in file