/is-ecma-keyword

Primary LanguageTypeScriptMIT LicenseMIT

is-ecma-keyword

Determine if string is an ECMAScript keyword.

Install

npm install is-ecma-keyword

Usage

import isECMAKeyword from 'is-ecma-keyword';

console.log(isECMAKeyword('async')); // > true
console.log(isECMAKeyword('class')); // > true
console.log(isECMAKeyword('yo'));    // > false

Author

space-77 (next0186@gmail.com)