arrayOfShape
arrayOfShape :: { k: Function } → [ a ] → Boolean
Takes an object of validators defining the possible shape 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.
arrayOfShape is actually a semantic shortcut to every.
Related validators
Last updated