Skip to content

Instantly share code, notes, and snippets.

@ahmetgungor
Created November 7, 2018 08:32
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 ahmetgungor/1d804320ec1482a96621ba02f63f1b8c to your computer and use it in GitHub Desktop.
Save ahmetgungor/1d804320ec1482a96621ba02f63f1b8c to your computer and use it in GitHub Desktop.
var keyExistsOn = (o, k) => k.split(".").reduce((a, c) => a.hasOwnProperty(c) ? a[c] || 1 : false, Object.assign({}, o)) === false ? false : true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment