Sha256: 3c0f41bd53c675bfb44aea7d3b7396cb6ad9fb1b0ffefed61215fd74569d21c9
Contents?: true
Size: 342 Bytes
Versions: 23
Compression:
Stored size: 342 Bytes
Contents
'use strict' module.exports = wordCharacter var fromCode = String.fromCharCode var re = /\w/ // Check if the given character code, or the character code at the first // character, is a word character. function wordCharacter(character) { return re.test( typeof character === 'number' ? fromCode(character) : character.charAt(0) ) }
Version data entries
23 entries across 23 versions & 1 rubygems