regexp-map

Curried function which takes a map of `RegExp` string keys which when successfully matched given string, resolves to mapped value.

Browse on unpkg