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