1
|
# es-abstract <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
|
2
|
|
3
|
[![Build Status][travis-svg]][travis-url]
|
4
|
[![dependency status][deps-svg]][deps-url]
|
5
|
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
6
|
[![License][license-image]][license-url]
|
7
|
[![Downloads][downloads-image]][downloads-url]
|
8
|
|
9
|
[![npm badge][npm-badge-png]][package-url]
|
10
|
|
11
|
[![browser support][testling-svg]][testling-url]
|
12
|
|
13
|
ECMAScript spec abstract operations.
|
14
|
When different versions of the spec conflict, the default export will be the latest version of the abstract operation.
|
15
|
All abstract operations will also be available under an `es5`/`es2015`/`es2016`/`es2017`/`es2018`/`es2019` entry point, and exported property, if you require a specific version.
|
16
|
|
17
|
## Example
|
18
|
|
19
|
```js
|
20
|
var ES = require('es-abstract');
|
21
|
var assert = require('assert');
|
22
|
|
23
|
assert(ES.isCallable(function () {}));
|
24
|
assert(!ES.isCallable(/a/g));
|
25
|
```
|
26
|
|
27
|
## Tests
|
28
|
Simply clone the repo, `npm install`, and run `npm test`
|
29
|
|
30
|
## Security
|
31
|
|
32
|
Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
|
33
|
|
34
|
[package-url]: https://npmjs.org/package/es-abstract
|
35
|
[npm-version-svg]: http://versionbadg.es/ljharb/es-abstract.svg
|
36
|
[travis-svg]: https://travis-ci.org/ljharb/es-abstract.svg
|
37
|
[travis-url]: https://travis-ci.org/ljharb/es-abstract
|
38
|
[deps-svg]: https://david-dm.org/ljharb/es-abstract.svg
|
39
|
[deps-url]: https://david-dm.org/ljharb/es-abstract
|
40
|
[dev-deps-svg]: https://david-dm.org/ljharb/es-abstract/dev-status.svg
|
41
|
[dev-deps-url]: https://david-dm.org/ljharb/es-abstract#info=devDependencies
|
42
|
[testling-svg]: https://ci.testling.com/ljharb/es-abstract.png
|
43
|
[testling-url]: https://ci.testling.com/ljharb/es-abstract
|
44
|
[npm-badge-png]: https://nodei.co/npm/es-abstract.png?downloads=true&stars=true
|
45
|
[license-image]: https://img.shields.io/npm/l/es-abstract.svg
|
46
|
[license-url]: LICENSE
|
47
|
[downloads-image]: https://img.shields.io/npm/dm/es-abstract.svg
|
48
|
[downloads-url]: https://npm-stat.com/charts.html?package=es-abstract
|