main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
530 bytes
|
Line | |
---|
1 | import _Object$keys from "core-js-pure/features/object/keys.js";
|
---|
2 | import _indexOfInstanceProperty from "core-js-pure/features/instance/index-of.js";
|
---|
3 | export default function _objectWithoutPropertiesLoose(source, excluded) {
|
---|
4 | if (source == null) return {};
|
---|
5 | var target = {};
|
---|
6 | var sourceKeys = _Object$keys(source);
|
---|
7 | var key, i;
|
---|
8 | for (i = 0; i < sourceKeys.length; i++) {
|
---|
9 | key = sourceKeys[i];
|
---|
10 | if (_indexOfInstanceProperty(excluded).call(excluded, key) >= 0) continue;
|
---|
11 | target[key] = source[key];
|
---|
12 | }
|
---|
13 | return target;
|
---|
14 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.