# core-js
[![Sponsors on Open Collective](https://opencollective.com/core-js/sponsors/badge.svg)](#raising-funds) [![Backers on Open Collective](https://opencollective.com/core-js/backers/badge.svg)](#raising-funds) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/zloirock/core-js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![version](https://img.shields.io/npm/v/core-js.svg)](https://www.npmjs.com/package/core-js) [![npm downloads](https://img.shields.io/npm/dm/core-js.svg)](http://npm-stat.com/charts.html?package=core-js&author=&from=2014-11-18) [![Build Status](https://travis-ci.org/zloirock/core-js.svg)](https://travis-ci.org/zloirock/core-js) [![devDependency status](https://david-dm.org/zloirock/core-js/dev-status.svg)](https://david-dm.org/zloirock/core-js?type=dev)
## As advertising: the author is looking for a good job :)
## [core-js@3, babel and a look into the future](https://github.com/zloirock/core-js/tree/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md)
## Raising funds
`core-js` isn't backed by a company, so the future of this project depends on you. Become a sponsor or a backer [**on Open Collective**](https://opencollective.com/core-js) or [**on Patreon**](https://www.patreon.com/zloirock) if you are interested in `core-js`.
---
<a href="https://opencollective.com/core-js/sponsor/0/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/0/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/1/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/1/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/2/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/2/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/3/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/3/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/4/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/4/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/5/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/5/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/6/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/6/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/7/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/7/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/8/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/8/avatar.svg"></a><a href="https://opencollective.com/core-js/sponsor/9/website" target="_blank"><img src="https://opencollective.com/core-js/sponsor/9/avatar.svg"></a>
---
<a href="https://opencollective.com/core-js#backers" target="_blank"><img src="https://opencollective.com/core-js/backers.svg?width=890"></a>
---
**It's documentation for obsolete `core-js@2`. If you looking documentation for actual `core-js` version, please, check [this branch](https://github.com/zloirock/core-js/tree/master).**
Modular standard library for JavaScript. Includes polyfills for [ECMAScript 5](#ecmascript-5), [ECMAScript 6](#ecmascript-6): [promises](#ecmascript-6-promise), [symbols](#ecmascript-6-symbol), [collections](#ecmascript-6-collections), iterators, [typed arrays](#ecmascript-6-typed-arrays), [ECMAScript 7+ proposals](#ecmascript-7-proposals), [setImmediate](#setimmediate), etc. Some additional features such as [dictionaries](#dict) or [extended partial application](#partial-application). You can require only needed features or use it without global namespace pollution.
[*Example*](http://goo.gl/a2xexl):
```js
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
'*'.repeat(10); // => '**********'
Promise.resolve(32).then(x => console.log(x)); // => 32
setImmediate(x => console.log(x), 42); // => 42
```
[*Without global namespace pollution*](http://goo.gl/paOHb0):
```js
var core = require('core-js/library'); // With a modular system, otherwise use global `core`
core.Array.from(new core.Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
core.String.repeat('*', 10); // => '**********'
core.Promise.resolve(32).then(x => console.log(x)); // => 32
core.setImmediate(x => console.log(x), 42); // => 42
```
### Index
- [Usage](#usage)
- [Basic](#basic)
- [CommonJS](#commonjs)
- [Custom build](#custom-build-from-the-command-line)
- [Supported engines](#supported-engines)
- [Features](#features)
- [ECMAScript 5](#ecmascript-5)
- [ECMAScript 6](#ecmascript-6)
- [ECMAScript 6: Object](#ecmascript-6-object)
- [ECMAScript 6: Function](#ecmascript-6-function)
- [ECMAScript 6: Array](#ecmascript-6-array)
- [ECMAScript 6: String](#ecmascript-6-string)
- [ECMAScript 6: RegExp](#ecmascript-6-regexp)
- [ECMAScript 6: Number](#ecmascript-6-number)
- [ECMAScript 6: Math](#ecmascript-6-math)
- [ECMAScript 6: Date](#ecmascript-6-date)
- [ECMAScript 6: Promise](#ecmascript-6-promise)
- [ECMAScript 6: Symbol](#ecmascript-6-symbol)
- [ECMAScript 6: Collections](#ecmascript-6-collections)
- [ECMAScript 6: Typed Arrays](#ecmascript-6-typed-arrays)
- [ECMAScript 6: Reflect](#ecmascript-6-reflect)
- [ECMAScript 7+ proposals](#ecmascript-7-proposals)
- [stage 4 proposals](#stage-4-proposals)
- [stage 3 proposals](#stage-3-proposals)
- [stage 2 proposals](#stage-2-proposals)
- [stage 1 proposals](#stage-1-proposals)
- [stage 0 proposals](#stage-0-proposals)
- [pre-stage 0 proposals](#pre-stage-0-proposals)
- [Web standards](#web-standards)
- [setTimeout / setInterval](#settimeout--setinterval)
- [setImmediate](#setimmediate)
- [iterable DOM collections](#iterable-dom-collections)
- [Non-standard](#non-standard)
- [Object](#object)
- [Dict](#dict)
- [partial application](#partial-application)
- [Number Iterator](#number-iterator)
- [escaping strings](#escaping-strings)
- [delay](#delay)
- [helpers for iterators](#helpers-for-iterators)
- [Missing polyfills](#missing-polyfills)
- [Changelog](./CHANGELOG.md)
## Usage
### Basic
```
npm i core-js
bower install core.js
```
```js
// Default
require('core-js');
// Without global namespace pollution
var core = require('core-js/library');
// Shim only
require('core-js/shim');
```
If you need complete build for browser, use builds from `core-js/client` path:
* [default](https://raw.githack.com/zloirock/core-js/v2.6.12/client/core.min.js): Includes all features, standard and non-standard.
* [as a library](https://raw.githack.com/zloirock/core-js/v2.6.12/client/library.min.js): Like "default", but does not pollute the global namespace (see [2nd example at the top](#core-js)).
* [shim only](https://raw.githack.com/zloirock/core-js/v2.6.12/client/shim.min.js): Only includes the standard methods.
Warning: if you use `core-js` with the extension of native objects, require all needed `core-js` modules at the beginning of entry point of your application, otherwise, conflicts may occur.
### CommonJS
You can require only needed modules.
```js
require('core-js/fn/set');
require('core-js/fn/array/from');
require('core-js/fn/array/find-index');
Array.from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
[1, 2, NaN, 3, 4].findIndex(isNaN); // => 2
// or, w/o global namespace pollution:
var Set = require('core-js/library/fn/set');
var from = require('core-js/library/fn/array/from');
var findIndex = require('core-js/library/fn/array/find-index');
from(new Set([1, 2, 3, 2, 1])); // => [1, 2, 3]
findIndex([1, 2, NaN, 3, 4], isNaN); // => 2
```
Available entry points for methods / constructors, as above examples, and namespaces: for example, `core-js/es6/array` (`core-js/library/es6/array`) contains all [ES6 `Arra
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于VUE3+Layui从头搭建通用后台管理系统(前端篇)开发,提供源码。包括前端常用功能、基础框架等; 使用express实现模拟后端,提供前端功能接口; 使用echarts实现系统统计图表功能演示; 使用datav实现大屏监控功能; 组件封装:下拉选择、图片上传、富文本、列表界面组件、表单界面组件、详情界面组件、多选框、单选框等常用组件的封装。 常用功能:登录注册(短信登录、邮箱登录)、找回密码(短信找回、邮箱找回)、管理主页、主题切换、暗黑主题切换、全局搜索、个人消息、个人信息管理、国际化、工作台、系统设置、系统日志、菜单管理、角色管理、用户管理、数据字典、实体配置、消息管理、验证码管理、用户管理、常规图表、特殊图表、地图、大屏监控、会员管理、订单管理、商品管理、文章管理等。 1.CSDN博客专栏:https://blog.csdn.net/m0_37631110/category_11681595.html 2.CSDN课程地址:https://edu.csdn.net/course/detail/38183 3.B站视频地址
资源推荐
资源详情
资源评论
收起资源包目录
基于VUE3+Layui从头搭建通用后台管理系统(前端篇) (2002个子文件)
site.css 4KB
.DS_Store 8KB
.DS_Store 6KB
font-editor.html 19KB
glyph-inspector.html 14KB
font-inspector.html 10KB
creating-fonts.html 4KB
reading-writing.html 3KB
page.html 220B
page.html 220B
page.html 220B
escapes.html 45B
smile.html 10B
opentype.js 378KB
opentype.min.js 194KB
mime-types.js 88KB
3c2c7a3bcc1f461f848a0894394236cb208743a8.js 72KB
hintingtt.js 72KB
index.js 61KB
97569149381c953136b45d1da095d5a9feb7a2cf.js 45KB
cff.js 45KB
index.js 43KB
index.js 38KB
_stream_readable.js 31KB
42baa76c71d88cbc012579839d7cbbc4ed8cfee2.js 28KB
types.js 28KB
parse.js 27KB
response.js 26KB
index.js 26KB
d2b5c9b87970980829712373716cf91d2efd4574.js 26KB
types.js 26KB
4b04bf09c75d9a96b8a9c5df313dab89de9be642.js 25KB
name.js 25KB
index.js 24KB
index.js 23KB
opentype.js 20KB
resolver_sync.js 20KB
7e7e9be75404e4ed8b8ed9f4733d82e2a1cd6d0b.js 20KB
_stream_writable.js 20KB
index.js 20KB
font.js 20KB
resolver.js 19KB
index.js 19KB
index.js 18KB
445ef3c706dafb73c4f86221526bb1b408bab79a.js 16KB
run.js 16KB
encoding.js 16KB
0ea8c8446530e108dcd9f5d341adf9e9a08fd38b.js 15KB
a48518afccdafe05858a1e3626fdd59110b6f382.js 15KB
parse.js 15KB
index.js 15KB
index.js 14KB
simple.js 14KB
11dfc67c0035aef0686cf3cb5d248ba84b8dd52c.js 14KB
application.js 14KB
index.js 14KB
gsub.js 14KB
opentype.js 14KB
index.js 13KB
index.js 13KB
3e819132a60dd8cafac64c9af353f20e1da6e402.js 12KB
request.js 12KB
sfnt.js 12KB
inliner.js 12KB
ff5aec0be2984846e763c36c7332121de2c1e5c8.js 11KB
ac5fa5e25976a49111b9e0443989fb09dd111a60.js 11KB
964951f1292e7e1fdb5449181502e1c899a94d2a.js 11KB
restructure.js 11KB
os2.js 11KB
glyph.js 11KB
mail-message.js 11KB
1b7aa8077e3dfe3c805342212552d9c0a2818e49.js 11KB
glyf.js 11KB
substitution.js 11KB
async.js 11KB
override-compactor.js 11KB
index.js 11KB
657960e903e11382d2f68351dd78fd99fa3c0e1e.js 11KB
break-up.js 11KB
3383c2c1c8c9d3b076459c6874778a63d1803610.js 11KB
parse.js 11KB
name.js 11KB
ab097d597f4934a312f2d529ef184ae88724452b.js 10KB
gsub.js 10KB
mock.js 10KB
picomatch.js 10KB
ba6a0c24109007e1f4d82eb2d88af3caee56d9ca.js 9KB
layout.js 9KB
be8b097037bf57eaa7bb31fa1495e2f645cdfd2e.js 9KB
gpos.js 9KB
scan.js 9KB
index.js 9KB
cliui.js 9KB
index.js 9KB
input-source-map-tracker.js 9KB
tokenize.js 9KB
nodemon.js 9KB
optimizer.js 8KB
pool-resource.js 8KB
92076000679d678ed7fd0552c8fd93309fddf609.js 8KB
共 2002 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
军军君01
- 粉丝: 1w+
- 资源: 30
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 二叉树7-1-1.cpp
- android 9.0 原生模拟器 签名文件
- 技术面试最后反问面试官的话 校招面试非技术问题有哪些 非技术问题如何回答.png
- NB-IOT-BC26全网通模块Altium+ CADENCE +PADS三种格式(原理图SCH+PCB封装库)文件.zip
- 基于微信小程序开发的校园失物招领系统源码毕业设计(优质项目源码).zip
- 词向量是一种将自然语言中的单词转换为数值向量的技术,它能够捕捉词义和上下文信息
- nmap与masscan的简单使用
- MyBatis动态SQL.pdf
- 基于stm32单片机protues仿真的温湿度控制系统设计(仿真图、源代码)
- 词向量:自然语言处理的基石
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页