Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
746 bytes
|
Line | |
---|
1 | var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js");
|
---|
2 |
|
---|
3 | function _objectWithoutProperties(source, excluded) {
|
---|
4 | if (source == null) return {};
|
---|
5 | var target = objectWithoutPropertiesLoose(source, excluded);
|
---|
6 | var key, i;
|
---|
7 |
|
---|
8 | if (Object.getOwnPropertySymbols) {
|
---|
9 | var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
---|
10 |
|
---|
11 | for (i = 0; i < sourceSymbolKeys.length; i++) {
|
---|
12 | key = sourceSymbolKeys[i];
|
---|
13 | if (excluded.indexOf(key) >= 0) continue;
|
---|
14 | if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
---|
15 | target[key] = source[key];
|
---|
16 | }
|
---|
17 | }
|
---|
18 |
|
---|
19 | return target;
|
---|
20 | }
|
---|
21 |
|
---|
22 | module.exports = _objectWithoutProperties;
|
---|
23 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.