d11 theme
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
rdrew f035d16951 lots of layout changes + sidbars 2 weeks ago
..
5 lots of layout changes + sidbars 2 weeks ago
2015 lots of layout changes + sidbars 2 weeks ago
2016 lots of layout changes + sidbars 2 weeks ago
2017 lots of layout changes + sidbars 2 weeks ago
2018 lots of layout changes + sidbars 2 weeks ago
2019 lots of layout changes + sidbars 2 weeks ago
2020 lots of layout changes + sidbars 2 weeks ago
2021 lots of layout changes + sidbars 2 weeks ago
2022 lots of layout changes + sidbars 2 weeks ago
2023 lots of layout changes + sidbars 2 weeks ago
2024 lots of layout changes + sidbars 2 weeks ago
2025 lots of layout changes + sidbars 2 weeks ago
helpers lots of layout changes + sidbars 2 weeks ago
operations lots of layout changes + sidbars 2 weeks ago
.editorconfig lots of layout changes + sidbars 2 weeks ago
.nycrc lots of layout changes + sidbars 2 weeks ago
CHANGELOG.md lots of layout changes + sidbars 2 weeks ago
GetIntrinsic.js lots of layout changes + sidbars 2 weeks ago
LICENSE lots of layout changes + sidbars 2 weeks ago
README.md lots of layout changes + sidbars 2 weeks ago
es5.js lots of layout changes + sidbars 2 weeks ago
es6.js lots of layout changes + sidbars 2 weeks ago
es7.js lots of layout changes + sidbars 2 weeks ago
es2015.js lots of layout changes + sidbars 2 weeks ago
es2016.js lots of layout changes + sidbars 2 weeks ago
es2017.js lots of layout changes + sidbars 2 weeks ago
es2018.js lots of layout changes + sidbars 2 weeks ago
es2019.js lots of layout changes + sidbars 2 weeks ago
es2020.js lots of layout changes + sidbars 2 weeks ago
es2021.js lots of layout changes + sidbars 2 weeks ago
es2022.js lots of layout changes + sidbars 2 weeks ago
es2023.js lots of layout changes + sidbars 2 weeks ago
es2024.js lots of layout changes + sidbars 2 weeks ago
es2025.js lots of layout changes + sidbars 2 weeks ago
eslint.config.mjs lots of layout changes + sidbars 2 weeks ago
index.js lots of layout changes + sidbars 2 weeks ago
package.json lots of layout changes + sidbars 2 weeks ago

README.md

es-abstract Version Badge

dependency status dev dependency status License Downloads

npm badge

ECMAScript spec abstract operations.

Every operation is available by edition/year and by name - for example, es-abstract/2020/Call gives you the Call operation from ES2020, es-abstract/5/Type gives you the Type operation from ES5.

All abstract operations are also available under an es5/es2015/es2016/es2017/es2018/es2019/es2020/es2021 entry point, and as a property on the main export, but using deep imports is highly encouraged for bundle size and performance reasons. Non-deep entry points will be removed in the next semver-major release.

Example

var ES = require('es-abstract');
var assert = require('assert');

assert(ES.isCallable(function () {}));
assert(!ES.isCallable(/a/g));

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.