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:
459 bytes
|
Line | |
---|
1 | 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 | }
|
---|
13 | module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
---|
Note:
See
TracBrowser
for help on using the repository browser.