$ npm install is-es2016-keyword
Determine if string is an ES2016 keyword.
npm install os-is-es2016-keyword
const isES2016Keyword = require('is-es2016-keyword');
console.log(isES2016Keyword('async')); // > true
console.log(isES2016Keyword('class')); // > true
console.log(isES2016Keyword('yo')); // > false
Ivan Nikulin (ifaaan@gmail.com)
© 2010 - cnpmjs.org x YWFE | Home | YWFE