diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js')
| -rw-r--r-- | node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js index 36804a39..c5e7cf21 100644 --- a/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +++ b/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js @@ -1,16 +1,13 @@ import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; -export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; +function _objectWithoutProperties(e, t) { + if (null == e) return {}; + var o, + r, + i = objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } + var s = Object.getOwnPropertySymbols(e); + for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } - return target; -}
\ No newline at end of file + return i; +} +export { _objectWithoutProperties as default };
\ No newline at end of file |
