首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

es6-shim-0.35.6.zip

行业研究 340.41KB 36 需要积分: 1
立即下载

资源介绍:

es6-shim-0.35.6.zip
# ES6 Shim Provides compatibility shims so that legacy JavaScript engines behave as closely as possible to ECMAScript 6 (Harmony). [![Build Status][1]][2] [![dependency status][3]][4] [![dev dependency status][5]][6] [![browser support](https://ci.testling.com/paulmillr/es6-shim.png)](https://ci.testling.com/paulmillr/es6-shim) [![Sauce Test Status](https://saucelabs.com/browser-matrix/es6-shim.svg)](https://saucelabs.com/u/es6-shim) [HTML version of the final ECMAScript 6 spec][spec-html-url] ## Installation If you want to use it in browser: * Just include `es6-shim` before your scripts. * Include [es5-shim][es5-shim-url] especially if your browser doesn't support ECMAScript 5 - but every JS engine requires the `es5-shim` to correct broken implementations, so it's strongly recommended to always include it. Additionally, `es5-shim` should be loaded before `es6-shim`. For `node.js`, `io.js`, or any `npm`-managed workflow (this is the recommended method): npm install es6-shim Alternative methods: * `component install paulmillr/es6-shim` if you’re using [component(1)](https://github.com/componentjs/component). * `bower install es6-shim` if you’re using [Bower](http://bower.io/). In both browser and node you may also want to include `unorm`; see the [`String.prototype.normalize`](#stringprototypenormalize) section for details. ## Safe shims * `Map`, `Set` (requires ES5 property descriptor support) * `Promise` * `String`: * `fromCodePoint()` ([a standalone shim is also available](https://npmjs.com/string.fromcodepoint)) * `raw()` * `String.prototype`: * `codePointAt()` ([a standalone shim is also available](https://npmjs.com/string.prototype.codepointat)) * `endsWith()` ([a standalone shim is also available](https://npmjs.com/string.prototype.endswith)) * `includes()` ([a standalone shim is also available](https://npmjs.com/string.prototype.includes)) * `repeat()` ([a standalone shim is also available](https://npmjs.com/string.prototype.repeat)) * `startsWith()` ([a standalone shim is also available](https://npmjs.com/string.prototype.startswith)) * `RegExp`: * `new RegExp`, when given a RegExp as the pattern, will no longer throw when given a "flags" string argument. (requires ES5) * `RegExp.prototype`: * `flags` (requires ES5) ([a standalone shim is also available](https://npmjs.com/regexp.prototype.flags)) * `[Symbol.match]` (requires native `Symbol`s) * `[Symbol.replace]` (requires native `Symbol`s) * `[Symbol.search]` (requires native `Symbol`s) * `[Symbol.split]` (requires native `Symbol`s) * `toString` * `Number`: * binary and octal literals: `Number('0b1')` and `Number('0o7')` * `EPSILON` * `MAX_SAFE_INTEGER` * `MIN_SAFE_INTEGER` * `isNaN()`([a standalone shim is also available](https://www.npmjs.com/package/is-nan)) * `isInteger()` * `isSafeInteger()` * `isFinite()` * `parseInt()` * `parseFloat()` * `Array`: * `from()` ([a standalone shim is also available](https://www.npmjs.com/package/array.from)) * `of()` ([a standalone shim is also available](https://www.npmjs.com/package/array.of)) * `Array.prototype`: * `copyWithin()` * `entries()` ([a standalone shim is also available](https://npmjs.com/array.prototype.entries)) * `fill()` * `find()` ([a standalone shim is also available](https://npmjs.com/array.prototype.find)) * `findIndex()` ([a standalone shim is also available](https://npmjs.com/array.prototype.findindex)) * `keys()` ([a standalone shim is also available](https://npmjs.com/array.prototype.keys)) * `values()` ([a standalone shim is also available](https://npmjs.com/array.prototype.values)) * `indexOf()` (ES6 errata) ([a standalone shim is also available](https://npmjs.com/array.prototype.indexof)) * `Object`: * `assign()` ([a standalone shim is also available](https://npmjs.com/object.assign)) * `is()` ([a standalone shim is also available](https://npmjs.com/object-is)) * `keys()` (in ES5, but no longer throws on non-object non-null/undefined values in ES6) ([a standalone shim is also available](https://npmjs.com/object-keys) * `setPrototypeOf()` (IE >= 11) * `Function.prototype`: * `name` (es6-sham, covers IE 9-11) ([a standalone shim is also available](https://npmjs.com/function.prototype.name) * `Math`: * `acosh()` * `asinh()` * `atanh()` * `cbrt()` * `clz32()` * `cosh()` * `expm1()` * `fround()` * `hypot()` * `imul()` * `log10()` * `log1p()` * `log2()` * `sign()` * `sinh()` * `tanh()` * `trunc()` Math functions’ accuracy is 1e-11. * `Reflect` * `apply()` * `construct()` * `defineProperty()` * `deleteProperty()` * `get()` * `getOwnPropertyDescriptor()` * `getPrototypeOf()` * `has()` * `isExtensible()` * `ownKeys()` ([a standalone shim is also available](https://npmjs.com/reflect.ownkeys)) * `preventExtensions()` * `set()` * `setPrototypeOf()` * `Symbol` (only if it already exists) * `match` (and corresponding `String#match`, `String#startsWith`, `String#endsWith`, `String#includes`, `RegExp` support) * `replace` (and corresponding `String#replace` support) * `search` (and corresponding `String#search` support) * `split` (and corresponding `String#split` support) Well-known symbols will only be provided if the engine already has `Symbol` support. * `String.prototype` Annex B HTML methods * `anchor()` * `big()` * `blink()` * `bold()` * `fixed()` * `fontcolor()` * `fontsize()` * `italics()` * `link()` * `small()` * `strike()` * `sub()` * `sup()` These methods are part of "Annex B", which means that although they are a defacto standard, you shouldn't use them. None the less, the `es6-shim` provides them and normalizes their behavior across browsers. ## Subclassing The `Map`, `Set`, and `Promise` implementations are subclassable. You should use the following pattern to create a subclass in ES5 which will continue to work in ES6: ```javascript require('es6-shim'); function MyPromise(exec) { var promise = new Promise(exec); Object.setPrototypeOf(promise, MyPromise.prototype); // ... return promise; } Object.setPrototypeOf(MyPromise, Promise); MyPromise.prototype = Object.create(Promise.prototype, { constructor: { value: MyPromise } }); ``` ## String.prototype.normalize Including a proper shim for `String.prototype.normalize` would increase the size of this library by a factor of more than 4. So instead we recommend that you install the [`unorm`](https://github.com/walling/unorm) package alongside `es6-shim` if you need `String.prototype.normalize`. See https://github.com/paulmillr/es6-shim/issues/134 for more discussion. ## WeakMap shim It is not possible to implement WeakMap in pure javascript. The [es6-collections](https://github.com/WebReflection/es6-collections) implementation doesn't hold values strongly, which is critical for the collection. `es6-shim` decided to not include an incorrect shim. `WeakMap` has very unusual use-cases, so you probably won't need it at all (use simple `Map` instead). ## Getting started ```javascript require('es6-shim'); var assert = require('assert'); assert.equal(true, 'abc'.startsWith('a')); assert.equal(false, 'abc'.endsWith('a')); assert.equal(true, 'john alice'.includes('john')); assert.equal('123'.repeat(2), '123123'); assert.equal(false, NaN === NaN); assert.equal(true, Object.is(NaN, NaN)); assert.equal(true, -0 === 0); assert.equal(false, Object.is(-0, 0)); var result = Object.assign({ a: 1 }, { b: 2 }); assert.deepEqual(result, { a: 1, b: 2 }); assert.equal(true, isNaN('a')); assert.equal(false, Number.isNaN('a')); assert.equal(true, Number.isNaN(NaN)); assert.equal(true, isFinite('123')); assert.equal(false, Number.isFinite('123')); assert.equal(false, Number.isFinite(Infinity)); // Tests if value is a num

资源文件列表:

es6-shim-0.35.6.zip 大约有70个文件
  1. es6-shim-0.35.6/
  2. es6-shim-0.35.6/.eslintignore 22B
  3. es6-shim-0.35.6/.eslintrc 2.01KB
  4. es6-shim-0.35.6/.gitignore 120B
  5. es6-shim-0.35.6/.npmignore 50B
  6. es6-shim-0.35.6/.npmrc 19B
  7. es6-shim-0.35.6/.travis.yml 1005B
  8. es6-shim-0.35.6/CHANGELOG.md 30.7KB
  9. es6-shim-0.35.6/Gruntfile.js 3.75KB
  10. es6-shim-0.35.6/LICENSE 1.07KB
  11. es6-shim-0.35.6/README.md 10.59KB
  12. es6-shim-0.35.6/bower.json 498B
  13. es6-shim-0.35.6/component.json 440B
  14. es6-shim-0.35.6/es6-sham.js 5.44KB
  15. es6-shim-0.35.6/es6-sham.map 2.21KB
  16. es6-shim-0.35.6/es6-sham.min.js 1.78KB
  17. es6-shim-0.35.6/es6-shim.js 136.05KB
  18. es6-shim-0.35.6/es6-shim.map 80.26KB
  19. es6-shim-0.35.6/es6-shim.min.js 56.47KB
  20. es6-shim-0.35.6/node_modules/
  21. es6-shim-0.35.6/node_modules/chai/
  22. es6-shim-0.35.6/node_modules/chai/chai.js 154.85KB
  23. es6-shim-0.35.6/node_modules/es5-shim/
  24. es6-shim-0.35.6/node_modules/es5-shim/es5-shim.js 84.51KB
  25. es6-shim-0.35.6/node_modules/mocha/
  26. es6-shim-0.35.6/node_modules/mocha/mocha.css 5.48KB
  27. es6-shim-0.35.6/node_modules/mocha/mocha.js 518.48KB
  28. es6-shim-0.35.6/node_modules/promises-es6-tests/
  29. es6-shim-0.35.6/node_modules/promises-es6-tests/bundle/
  30. es6-shim-0.35.6/node_modules/promises-es6-tests/bundle/promises-es6-tests.js 28.52KB
  31. es6-shim-0.35.6/package.json 2.64KB
  32. es6-shim-0.35.6/test-sham/
  33. es6-shim-0.35.6/test-sham/.eslintrc 77B
  34. es6-shim-0.35.6/test-sham/function.js 2.02KB
  35. es6-shim-0.35.6/test-sham/index.html 869B
  36. es6-shim-0.35.6/test-sham/set-prototype-of.js 817B
  37. es6-shim-0.35.6/test/
  38. es6-shim-0.35.6/test/.eslintrc 440B
  39. es6-shim-0.35.6/test/array.js 38.08KB
  40. es6-shim-0.35.6/test/browser-onload.js 1.26KB
  41. es6-shim-0.35.6/test/browser-setup.js 215B
  42. es6-shim-0.35.6/test/date.js 177B
  43. es6-shim-0.35.6/test/google-translate.html 1.66KB
  44. es6-shim-0.35.6/test/index.html 1.46KB
  45. es6-shim-0.35.6/test/json.js 2.96KB
  46. es6-shim-0.35.6/test/map.js 20.39KB
  47. es6-shim-0.35.6/test/math.js 31.64KB
  48. es6-shim-0.35.6/test/mocha.opts 32B
  49. es6-shim-0.35.6/test/native.html 1.27KB
  50. es6-shim-0.35.6/test/number.js 18KB
  51. es6-shim-0.35.6/test/object.js 12.66KB
  52. es6-shim-0.35.6/test/promise.js 1.23KB
  53. es6-shim-0.35.6/test/promise/
  54. es6-shim-0.35.6/test/promise/all.js 5.78KB
  55. es6-shim-0.35.6/test/promise/evil-promises.js 1.37KB
  56. es6-shim-0.35.6/test/promise/promises-aplus.js 560B
  57. es6-shim-0.35.6/test/promise/promises-es6.js 468B
  58. es6-shim-0.35.6/test/promise/race.js 2.39KB
  59. es6-shim-0.35.6/test/promise/reject.js 1.17KB
  60. es6-shim-0.35.6/test/promise/resolve.js 1.1KB
  61. es6-shim-0.35.6/test/promise/simple.js 2.71KB
  62. es6-shim-0.35.6/test/promise/subclass.js 1.37KB
  63. es6-shim-0.35.6/test/reflect.js 19.43KB
  64. es6-shim-0.35.6/test/regexp.js 14.62KB
  65. es6-shim-0.35.6/test/set.js 21.03KB
  66. es6-shim-0.35.6/test/string.js 34.02KB
  67. es6-shim-0.35.6/test/test_helpers.js 494B
  68. es6-shim-0.35.6/test/worker-runner.workerjs 144B
  69. es6-shim-0.35.6/test/worker-test.js 1.54KB
  70. es6-shim-0.35.6/testling.html 1.39KB
0评论
提交 加载更多评论
其他资源 会飞的超人源码会飞的超人源码
会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码会飞的超人源码
26_石敏永_CJ3Z03A单片机原理及应用实验报告.zip
26_石敏永_CJ3Z03A单片机原理及应用实验报告.zip
26_石敏永_CJ3Z03A单片机原理及应用实验报告.zip 26_石敏永_CJ3Z03A单片机原理及应用实验报告.zip 26_石敏永_CJ3Z03A单片机原理及应用实验报告.zip
基于规则“SunThu-00:02:00-00:03:00,Mon-16:59:00-20:00:00”时间范围检查(C语言)
规则: 1、Mon、Tue、Wed...表示一周的某一天; 2、00:02:00-00:03:00表示一天之内的某一时间段; 3、SunThu|00:02:00-00:03:00表示某天(和某天)的某一时间段; 4、SunThu|00:02:00-00:03:00,Mon|16:59:00-20:00:00表示某天(和某天)的某一时间段和表示某天(和某天)的某一时间段,一组内可包括一至七天,一组内只能包括一个时间段。 基于以上规则,使用C语言实现检查当前时间点是否在规则规定的时间段内,使用方式: ./time_range_check "SunThu|00:02:00-00:03:00,Mon|16:59:00-20:00:00,FriSun|00:02:00-23:30:59,Sun|15:59:00-20:00:00" 规则格式正确 当前时间点在规则内
vue.js 代码文件压缩包
vue.js
libsndfile-1.2.2
1.2.2版本,win64系统 ibsndfile是一个强大且实用的音频处理库,它提供了跨平台的支持,覆盖了大量常见的音频格式,并且接口灵活,易于集成到现有项目。此外,它有着活跃的社区和完善的文档,使得无论你是初学者还是经验丰富的开发者,都能从中找到你需要的功能。 libsndfile 支持超过30种音频文件格式,包括常见的WAV, AIFF, AU, Ogg Vorbis 和FLAC等。
github自学教程-初级入门者必看
这个教程包括如下内容: 1. 初识 GitHub 2. 加入 GitHub 3. Git 速成 4. 向 GitHub 提交代码 5. Git 进阶 6. 团队合作利器:Git 分支详解 7. GitHub 常见的几种操作 8. 发现好用的开源项目 希望通过这个教程,人人可以很方便的掌握 Git/GitHub 的使用。
github自学教程-初级入门者必看 github自学教程-初级入门者必看 github自学教程-初级入门者必看
Python标准库中文版教程
Python 2.0 发布附带了一个包含200 个以上模块的可扩展的标准库. 本书简要 地介绍每个模块并提供至少一个例子来说明如何使用它. 本书一共包含360 个 例子. 本书使用DocBook SGML 编写, 我使用了一系列的工具, 包括Secret Labs' PythonWorks, Excosoft Documentor, James Clark's Jade DSSSL processor, Norm Walsh's DocBook stylesheets, 当然,还有一些 Python 脚本. 本书使用以下习惯用法:斜体 用于文件名和命令. 还用于定义术语.等宽字体 e.g. Python 用于代码以及方法,模块,操作符,函数,语句,属性等的名称.等宽粗体 用于代码执行结果.
Python标准库中文版教程 Python标准库中文版教程 Python标准库中文版教程
C#上位机 设计与开发以及数据解析示波器显示
本套程序C#上位机制作端口号、接收信息框、发送信息框,10进制 16进制显示等。发送数据进行解析,对数据进行 解包分析,并且有示波器显示,在数据分析中有序号、开火(0或1发送的数据16进制00或者01)是否起飞(0或1)、包头、飞机的架数,达到设定的 飞机架数将会弹出err,奇偶检验位等操作。