lodash-match-pattern icon indicating copy to clipboard operation
lodash-match-pattern copied to clipboard

Improve readability of examples

Open kevgo opened this issue 9 years ago • 0 comments

using ES6 destructuring syntax

{isString} = matchPattern.getLodashModule()

// Example usage:
var testValue = {a: 1, b: 'abc'}
var failResult = matchPattern(testValue, {a: isString, b: 'abc'})

kevgo avatar Jun 24 '16 01:06 kevgo