import structuredClone from 'core-js-pure/actual/structured-clone'; Promise.resolve(42).then(it => console.log(it)); // => 42 from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] flatMap([1, 2], it => [it, it]); // => [1, 1,...
toArray(); // => [9, 25] structuredClone(new Set([1, 2, 3])); // => new Set([1, 2, 3]) You can load only required features: import 'core-js/actual/promise'; import 'core-js/actual/set'; import 'core-js/actual/iterator'; import 'core-js/actual/array/from'; import '...
The structuredClone polyfill uses the arguments variable to count the number of arguments, and if there is more than one argument it validates that the second argument is an object. I encountered an issue where Mozilla's pdf-js uses this...
structuredClone from 'core-js-pure/actual/structured-clone'; Promise.resolve(42).then(it => console.log(it)); // => 42 from(new Set([1, 2, 3]).union(new Set([3, 4, 5]))); // => [1, 2, 3, 4, 5] flatMap([1,...
If it helps, I believe it's specific to jest-environment-node - they are setting structuredClone here for use in node tests. With that being said, I'm still not sure why it's node version specific - it might help if I knew where jest environment classes are actually instantiated, but...
most popular and the most universal polyfill of the JavaScript standard library, which provides support for the latest ECMAScript standard and proposals, from ancient ES5 features to bleeding edge features likeiterator helpers, and web platform features closely related to ECMAScript, likestructuredCl...
core-js compat. Latest version: 3.41.0, last published: 2 months ago. Start using core-js-compat in your project by running `npm i core-js-compat`. There are 1169 other projects in the npm registry using core-js-compat.
structured-clone-proper-transfer.js /usr/share/nodejs/core-js/internals/symbol-constructor-detection.js /usr/share/nodejs/core-js/internals/symbol-define-to-primitive.js /usr/share/nodejs/core-js/internals/symbol-is-registered.js /usr/share/nodejs/core-js/internals/symbol-is-well-known.js /...
URLSearchParams queueMicrotask setImmediate structuredClone polyfill ponyfill shim Get a badge for your packageStatistics Data range: 0 Requests +0% quarterly growth 0 Bandwidth +0% quarterly growth Stats for past quarter Show numbers of Requests Bandwidth Group by: day day week Top versions...
ECMAScript 2020 ECMAScript 2021 ECMAScript 2022 ECMAScript 2023 ECMAScript 2024 Map Set WeakMap WeakSet TypedArray Promise Observable Symbol Iterator AsyncIterator URL URLSearchParams queueMicrotask setImmediate structuredClone polyfill ponyfill shim