is-exist
Функция проверки существования пути в объекте. Function check the existence of a path in the object.
Аргументы / Arguments
- Object - объект для проверки
- Path (string) - путь по которому нужно пройтись
- return (boolean) - включить вывод
Примеры / Example
var isExist = ;var messages = id: 0 body: "message 1" attachments: id: 1 link: "https://google.com/" id: 2 link: "https://vk.com/" ; if console; console; console;else console;
Дополнительно / Additionally
// true // true // <messages> // <messages> // false (path false => "false") // undefined // false // undefined