Skip to content

Instantly share code, notes, and snippets.

@kino6052
Last active December 8, 2020 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kino6052/063cecd5601485307c8bb363f62092ab to your computer and use it in GitHub Desktop.
Save kino6052/063cecd5601485307c8bb363f62092ab to your computer and use it in GitHub Desktop.
Existence
const is = (it, n = Symbol()) => (it ?? n) !== n;
const is = it => (it ?? null) !== null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment