Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
350 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 |
|
---|
| 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 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.