Last updated
Last updated
Takes a string defining a property name and returns a new function evaluation whether the received value (can be of any type) exists and has the defined property.
hasProp does not evaluate whether the received value is strictly of type , it only makes sure it has the defined property
hasProp :: string → { k: v } → Boolean