An open API service indexing awesome lists of open source software.

https://github.com/prettier/is-es5-identifier-name

Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
https://github.com/prettier/is-es5-identifier-name

Last synced: 8 months ago
JSON representation

Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.

Awesome Lists containing this project

README

          

# is-es5-identifier-name

> Check if provided string is an `IdentifierName` as specified in [ECMA262 edition 5.1 section 7.6](https://262.ecma-international.org/5.1/#sec-7.6).

## Installation

```bash
yarn add is-es5-identifier-name
```

## Usage

```js
import isEs5IdentifierName from "is-es5-identifier-name";

isEs5IdentifierName("es5");
// -> true

isEs5IdentifierName("16");
// -> false
```