# 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.10/client/core.min.js): Includes all features, standard and non-standard.
* [as a library](https://raw.githack.com/zloirock/core-js/v2.6.10/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.10/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
没有合适的资源?快使用搜索试试~ 我知道了~
cocos creator 3.8.4
共2000个文件
md:1115个
html:791个
txt:83个
需积分: 0 4 下载量 11 浏览量
2024-11-26
22:01:20
上传
评论
收藏 555.36MB 7Z 举报
温馨提示
cocos creator 3.8.4
资源推荐
资源详情
资源评论
收起资源包目录
cocos creator 3.8.4 (2000个子文件)
process.h 1KB
process_worker.h 816B
process_commandline.h 816B
cpu_worker.h 747B
genindex.html 2.47MB
cmake-generator-expressions.7.html 225KB
ctest.1.html 195KB
cmake-file-api.7.html 168KB
cmake-buildsystem.7.html 160KB
cmake.1.html 116KB
index.html 111KB
cmake-variables.7.html 104KB
cmake-presets.7.html 99KB
rpm.html 95KB
cmake-toolchains.7.html 91KB
cmake-packages.7.html 84KB
cmake-properties.7.html 77KB
index.html 74KB
deb.html 69KB
cmake-language.7.html 68KB
cmake-developer.7.html 61KB
index.html 55KB
ifw.html 52KB
cmake-qt.7.html 48KB
cmake-policies.7.html 46KB
cmake-compile-features.7.html 42KB
cmake-modules.7.html 37KB
external.html 36KB
CMAKE_LINK_LIBRARY_USING_FEATURE.html 36KB
CMAKE_LANG_LINK_LIBRARY_USING_FEATURE.html 35KB
nuget.html 33KB
productbuild.html 32KB
Selecting Static or Shared Libraries.html 30KB
ccmake.1.html 29KB
wix.html 28KB
cpack.1.html 28KB
nsis.html 24KB
Adding Export Configuration.html 24KB
A Basic Starting Point.html 22KB
cmake-commands.7.html 21KB
Adding a Library.html 21KB
index.html 21KB
CMAKE_LINK_GROUP_USING_FEATURE.html 20KB
Adding a Custom Command and Generated File.html 20KB
dmg.html 20KB
CMAKE_LANG_LINK_GROUP_USING_FEATURE.html 20KB
Installing and Testing.html 19KB
cmake-gui.1.html 19KB
freebsd.html 18KB
FIXTURES_REQUIRED.html 18KB
Adding Generator Expressions.html 17KB
cmake-generators.7.html 16KB
Adding System Introspection.html 16KB
CMAKE_GENERATOR_TOOLSET.html 15KB
cmake-env-variables.7.html 15KB
archive.html 14KB
Packaging Debug and Release.html 14KB
CMAKE_POLICY_WARNING_CMPNNNN.html 13KB
CMAKE_SYSTEM_PREFIX_PATH.html 13KB
CMAKE_MAKE_PROGRAM.html 12KB
Packaging an Installer.html 12KB
Adding Support for a Testing Dashboard.html 12KB
CMAKE_SYSTEM_IGNORE_PATH.html 12KB
Adding Usage Requirements for a Library.html 12KB
CMAKE_FIND_USE_PACKAGE_REGISTRY.html 12KB
bundle.html 12KB
CMAKE_FIND_USE_INSTALL_PREFIX.html 11KB
CMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY.html 11KB
CMAKE_IGNORE_PATH.html 11KB
RESOURCE_GROUPS.html 11KB
CMAKE_GENERATOR_INSTANCE.html 11KB
CMAKE_INSTALL_PREFIX.html 11KB
CMAKE_MESSAGE_CONTEXT.html 11KB
CMAKE_MSVC_RUNTIME_LIBRARY.html 11KB
CTEST_COVERAGE_COMMAND.html 10KB
CPACK_CUSTOM_INSTALL_VARIABLES.html 10KB
CMAKE_WATCOM_RUNTIME_LIBRARY.html 10KB
CMAKE_FIND_USE_PACKAGE_ROOT_PATH.html 10KB
CMAKE_VERSION.html 10KB
ENVIRONMENT_MODIFICATION.html 10KB
CMAKE_SYSTEM_IGNORE_PREFIX_PATH.html 10KB
INCLUDE_DIRECTORIES.html 10KB
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH.html 10KB
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH.html 10KB
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH.html 10KB
CMAKE_MAXIMUM_RECURSION_DEPTH.html 10KB
CMAKE_LANG_LINKER_WRAPPER_FLAG.html 10KB
PROJECT_IS_TOP_LEVEL.html 10KB
CMAKE_IGNORE_PREFIX_PATH.html 10KB
CMAKE_LANG_IMPLICIT_LINK_DIRECTORIES.html 10KB
CMAKE_DEFAULT_CONFIGS.html 10KB
CMAKE_FIND_USE_CMAKE_PATH.html 10KB
CMAKE_GLOBAL_AUTOGEN_TARGET.html 10KB
CMAKE_TRY_COMPILE_PLATFORM_VARIABLES.html 10KB
CMAKE_PROJECT_TOP_LEVEL_INCLUDES.html 9KB
TIMEOUT_AFTER_MATCH.html 9KB
PROJECT-NAME_IS_TOP_LEVEL.html 9KB
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY.html 9KB
CMAKE_PROJECT_HOMEPAGE_URL.html 9KB
CMAKE_PROJECT_DESCRIPTION.html 9KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
qq937981576
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- HTML5实现好看的清洁服务公司网站模板.zip
- HTML5实现好看的墙壁粉刷公司网站源码.zip
- HTML5实现好看的清爽创意家居网站源码.zip
- HTML5实现好看的清爽大屏饼干制作网站源码.zip
- HTML5实现好看的清爽家政公司网站源码.zip
- HTML5实现好看的清新的教育机构网站源码.zip
- 重庆邮电大学信号处理实验三
- WINCC的SQL应用,无需修改任何源码, 导入变量即可自动生成配方报表 配方报表,vbs应用,配方应用 学习利器,可供有需要学习的朋友学习, 源码公开, 配合SQLSERVER使用
- 基于卷积神经网络(CNN)的手写数字识别 matlab代码,要求2018版本及以上
- 重庆邮电大学信号处理实验四代码
- 基于SSM框架的家庭健康管理系统+Java、HTML+家庭健康管理、健康指标管理
- 基于c代码的空间电压矢量svpwm算法simulink仿真: 1.svpwm的c代码为实际工程中使用和验证过,代码简洁,注释详细; 2.采用7段式svpwm,有过调机制处理; 3.送svpwm原理详
- fpga sata 2.0 3.0源码,纯verilog代码,根据不同的平台,支持gtx gth gty平台
- 堆垛机西门子PLC程序+输送线程序 物流仓储 涵盖通信,算法,运动控制,屏幕程序,可电脑仿真测试 实际项目完整程序 西门子S7-1200+G120+劳易测激光测距 博途V15.1编程 采用SC
- 基于SSM框架的家庭健康管理系统论文+Java、SSM、MySQL+健康管理、指标管理
- carsim与simulink联合仿真的线控转向系统
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功