1.1.1 • Published 5 years ago

undefinedchainchecker v1.1.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Undefined Chain Checker

This little library can be used to check if a chain of objects is not undefined. Especially to check the last object.

Example Usage

var isDefined = require('undefinedchainchecker');

var obj = {
    a: {
        b: {
            c: 'foo'
        }
    }
};

isDefined(obj, 'a') // returns true
isDefined(obj, 'a.b') // returns true
isDefined(obj, 'a.b.c') // returns true
isDefined(obj, 'a.b.x') // returns false
1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago