Get started with core-js CDN
MIT licensed
Core-js is a modular library providing polyfills for ECMAScript features.
Tags:- ES5
- ECMAScript 5
- ES6
- ECMAScript 6
- ES7
- ECMAScript 7
- Harmony
- Strawman
- Map
- Set
- WeakMap
- WeakSet
- Dict
- Promise
- Symbol
- Array generics
- setImmediate
- partial application
- Date formatting
Stable version
Copied!
How to start using core-js CDN
// Include core-js library
const coreJs = document.createElement('script');
coreJs.src = 'https://cdn.cdnhub.io/core-js/3.36.0/minified.js';
document.head.appendChild(coreJs);
// Wait for core-js to load before running the example
coreJs.onload = async () => {
// Define a function that returns a promise
const fetchData = async (url) => {
const response = await fetch(url);
const data = await response.json();
return data;
};
// Use the function to fetch data and log it to the console
const exampleData = await fetchData('https://jsonplaceholder.typicode.com/todos/1');
console.log(exampleData);
};
Copied!
Copied!
Copied!
All versions
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.2.5
0.3.0
0.3.1
0.3.2
0.3.3
0.4.0
0.4.1
0.4.10
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.6.0
0.6.1
0.7.0
0.7.1
0.7.2
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.9.0
0.9.1
0.9.10
0.9.11
0.9.12
0.9.13
0.9.14
0.9.15
0.9.16
0.9.17
0.9.18
0.9.2
0.9.3
0.9.4
0.9.5
0.9.6
0.9.7
0.9.8
0.9.9
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
1.2.7
2.0.0
2.0.0-alpha
2.0.0-beta
2.0.0-beta.2
2.0.1
2.0.2
2.0.3
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.2.0
2.2.1
2.2.2
2.3.0
2.4.0
2.4.1
2.5.0
2.5.1
2.5.2
2.5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