Module
Data.Foreign.Index
- Package
- purescript-foreign
- Repository
- purescript/purescript-foreign
This module defines a type class for types which act like property indices.
#Index Source
class Index i where
This type class identifies types that act like property indices.
The canonical instances are for String
s and Int
s.
Members
index :: Foreign -> i -> F Foreign
hasProperty :: i -> Foreign -> Boolean
hasOwnProperty :: i -> Foreign -> Boolean
errorAt :: i -> ForeignError -> ForeignError