You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
350 B

4 years ago
  1. export default function _objectWithoutPropertiesLoose(source, excluded) {
  2. if (source == null) return {};
  3. var target = {};
  4. var sourceKeys = Object.keys(source);
  5. var key, i;
  6. for (i = 0; i < sourceKeys.length; i++) {
  7. key = sourceKeys[i];
  8. if (excluded.indexOf(key) >= 0) continue;
  9. target[key] = source[key];
  10. }
  11. return target;
  12. }