Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

undefined and null check

node v18.11.0
version: 1.0.0
endpointsharetweet
var _ = require("lodash@4.17.15") _.assign(global, require("lodash-doc-globals")) Object.observe = _.noop
const coords = { lat: 0, lng: 0 }; console.log(_.isEmpty(coords)); // false console.log(typeof coords.lat !== 'undefined'); // true console.log(coords.lat !== null); // true
Created from: https://lodash.com/docs/4.17.15#isEmpty
Loading…

no comments

    sign in to comment