unicode-match-property-ecmascript
Last updated
Was this helpful?
Last updated
Was this helpful?
unicode-match-property-ecmascript matches a given Unicode property or to its canonical property name without applying per the algorithm used for . Consider it a strict alternative to loose matching.
To use unicode-match-property-ecmascript programmatically, install it as a dependency via :
Then, require
it:
This module exports a single function named matchProperty
.
matchProperty(value)
This function takes a string value
and attempts to match it to a canonical Unicode property name. If there’s a match, it returns the canonical property name. Otherwise, it throws an exception.
unicode-match-property-ecmascript is available under the license.