Skip to content

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

License

Notifications You must be signed in to change notification settings

prettier/is-es5-identifier-name

Repository files navigation

is-es5-identifier-name

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

Installation

yarn add @prettier/is-es5-identifier-name

Usage

import isEs5IdentifierName from "@prettier/is-es5-identifier-name";

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

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

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published