Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
462 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | function _objectWithoutPropertiesLoose(source, excluded) {
|
---|
| 2 | if (source == null) return {};
|
---|
| 3 | var target = {};
|
---|
| 4 | var sourceKeys = Object.keys(source);
|
---|
| 5 | var key, i;
|
---|
| 6 |
|
---|
| 7 | for (i = 0; i < sourceKeys.length; i++) {
|
---|
| 8 | key = sourceKeys[i];
|
---|
| 9 | if (excluded.indexOf(key) >= 0) continue;
|
---|
| 10 | target[key] = source[key];
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | return target;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | module.exports = _objectWithoutPropertiesLoose;
|
---|
| 17 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.