@prettier/is-es5-identifier-name
v0.2.0
Published
Check if provided string is an `IdentifierName` as specified in ECMA262 edition 5.1 section 7.6.
Downloads
12,073
Maintainers
Keywords
Readme
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