Is Match

'isMatch()' is a predicate function, That you can pass pattern and value as an arguments

let value = isMatch([pattern], [value])
const pattern = "LD-"
const value = "LD-00001"
let isMatch = isMatch(pattern, value); //true