Skip to content

Help you to access nested of object/array without error.

Notifications You must be signed in to change notification settings

dagdun/is-object-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-object-helper

var obj = [{id: 123, name: "test"}];
console.log(obj[0].id); // 123
var obj = {};
console.log(obj[0].id); // crashed program
var is = require("is-object-helper");
var obj = {};
console.log(is(obj, "[0].id", null); // null

About

Help you to access nested of object/array without error.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published