Skip to content

Instantly share code, notes, and snippets.

@ajcrites
Created June 24, 2015 21:14
Show Gist options
  • Select an option

  • Save ajcrites/0a3ef5aecd13b50b7acc to your computer and use it in GitHub Desktop.

Select an option

Save ajcrites/0a3ef5aecd13b50b7acc to your computer and use it in GitHub Desktop.
"use strict";
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var _a = { a: 1 };
var a = _objectWithoutProperties(_a, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment