arrayOfShape
arrayOfShape :: { k: Function } → [ a ] → Boolean
Last updated
Was this helpful?
arrayOfShape :: { k: Function } → [ a ] → Boolean
Last updated
Was this helpful?
Takes an object of validators defining the possible of an object and returns a new function that reports whether the received array matches that shape for every of its elements.
The created validator areValidUser only makes sure the received array has items matching the defined shape un-strictly, meaning it will return true even if one or more objects has additional properties.