Skip to main content
Module

x/rambda/match.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function match(pattern, input){ if (arguments.length === 1) return _input => match(pattern, _input)
const willReturn = input.match(pattern)
return willReturn === null ? [] : willReturn}