# 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.11/client/core.min.js): Includes all features, standard and non-standard.
* [as a library](https://raw.githack.com/zloirock/core-js/v2.6.11/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.11/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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【资源说明】 1、该资源内项目代码都是经过测试运行成功,功能正常的情况下才上传的,请放心下载使用。 2、适用人群:主要针对计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、数学、电子信息等)的同学或企业员工下载使用,具有较高的学习借鉴价值。 3、不仅适合小白学习实战练习,也可作为大作业、课程设计、毕设项目、初期项目立项演示等,欢迎下载,互相学习,共同进步! 在线商城和拍卖(源码+项目说明)(商城端用Uniapp开发,后端UI部分基于VUE+Element,业务后台采用Java).zip
资源推荐
资源详情
资源评论
收起资源包目录
在线商城和拍卖(完整源码+说明)(商城端用Uniapp开发,后端UI部分基于VUE+Element,业务后台).zip (2000个子文件)
index.css 414KB
index.b0ff4c21.css 81KB
index.2d26d90a.css 79KB
skin.min.css 42KB
visualblocks.css 5KB
content.min.css 4KB
content.inline.min.css 3KB
prism.css 2KB
index.html 1006B
index.html 988B
index.html 985B
index.html 495B
AdminOrderController.java 48KB
AdminOrderService.java 45KB
BCrypt.java 31KB
AdminGoodsService.java 26KB
PDFUtil.java 24KB
DateUtil.java 23KB
AdminGoodsController.java 23KB
AdminArticleClassController.java 20KB
AdminMenuController.java 12KB
NotifyService.java 12KB
AdminGoodsRuleService.java 11KB
RegexUtil.java 11KB
AdminGoodsRebateRuleService.java 10KB
AdminStatController.java 9KB
AdminUpdateVersionController.java 9KB
AdminRoleController.java 9KB
SystemConfig.java 9KB
ProcessWindowsBatUtil.java 8KB
AdminWenBoGuanArticleListController.java 8KB
AdminPromotionSeckillRuleController.java 8KB
AdminAuctionZhuanchangRuleCurrentService.java 8KB
AdminGrouponRulesController.java 8KB
OrderJob.java 8KB
AdminAuthorcorpService.java 8KB
SystemInistService.java 8KB
AdminHuodongsetService.java 7KB
AdminPromotionUserGoodsOrdersController.java 7KB
AdminPromotionGoodsRebateOrderController.java 7KB
AdminCompanyService.java 7KB
AdminAuthController.java 7KB
PromotionJob.java 7KB
PermissionUtil.java 7KB
AdminCommonLogController.java 7KB
AdminCategoryController.java 7KB
QCodeService.java 6KB
AdminCompanyController.java 6KB
AdminAuctionDajiaRuleCurrentController.java 6KB
AdminCommonDBController.java 6KB
AdminAuctionZhuanchangRuleCurrentController.java 6KB
AdminAdminController.java 6KB
AdminBackupDatabaseController.java 5KB
AdminGrouponOrdersController.java 5KB
AdminStoreService.java 5KB
ResponseUtil.java 5KB
WxMessageUtil.java 5KB
AdminPrivateMakeRuleController.java 5KB
AdminRegionController.java 5KB
AdminDicmainService.java 5KB
AdminRecommendService.java 5KB
AdminConfigController.java 5KB
AdminOpadminDefService.java 5KB
AdminCouponController.java 5KB
JacksonUtil.java 5KB
AlipayUtil.java 5KB
AdminBrandController.java 5KB
AdminUserinfoDefService.java 4KB
AdminUserController.java 4KB
StorageProperties.java 4KB
AdminPromotionSeckillOrdersController.java 4KB
TencentStorage.java 4KB
AdminHomeBackgroundImageController.java 4KB
ExpressService.java 4KB
AdminPromotionUserGoodsRuleController.java 4KB
LogHelper.java 4KB
AdminPickSiteController.java 4KB
AdminAuthorizingRealm.java 4KB
AdminArticleListController.java 4KB
AdminStorageController.java 4KB
AdminTopicController.java 4KB
AdminHomeIconController.java 4KB
AdminKeywordController.java 4KB
AdminIssueController.java 3KB
AdminAdController.java 3KB
AliyunStorage.java 3KB
Swagger2Config.java 3KB
NotifyProperties.java 3KB
AdminAuthororcorpController.java 3KB
AdminOpadminDefController.java 3KB
QiniuStorage.java 3KB
UserTicket.java 3KB
AdminDicmainController.java 3KB
AdminUserinfoDefController.java 3KB
ProcessLinuxShellUtil.java 3KB
HttpUtil.java 3KB
AdminPromotionGoodsRebateRuleController.java 3KB
ShiroConfig.java 3KB
AdminStoreController.java 3KB
AdminOpadminInfoController.java 3KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
龙年行大运
- 粉丝: 1384
- 资源: 3960
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 这是用MATLAB编写的sar合成孔径雷达反投影算法的一个实例.zip
- 这些matlab代码通过使用中心有限差分法求解相场方程来模拟晶粒生长.zip
- 针对工程师的SDR的MATLAB实现教材.zip
- 针对MATLAB的AIR Tools II工具箱附带出版物AIR Tools II代数迭代重建方法改进实现Hansen.zip
- Matlab实现RIME-BP霜冰优化BP神经网络多特征分类预测的详细项目实例(含完整的程序,GUI设计和代码详解)
- 针对电子战的发射器探测和地理定位的MATLAB代码.zip
- 阵列信号处理中到达方向DOA估计的MATLAB函数集.zip
- 执行一些从matlab代码到fortran的简单转换.zip
- 执行神经科学数据的信息理论分析的MATLAB工具箱.zip
- 主动学习工具箱的MATLAB.zip
- 准定量子点通道的MATLAB实现.zip
- 指纹识别在运行时使用从移动设备捕获的图像,使用Android和OpenCV构建,也构建在MATLAB中.zip
- 姿态和航向参考系统用MATLAB尽量简单.zip
- Matlab基于BiGRU双向门控循环单元的锂电池寿命预测的详细项目实例(含完整的程序,GUI设计和代码详解)
- 自动编码变分贝叶斯的MATLAB实现.zip
- 自然语言处理工具MATLAB.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功