English
Appearance
Determine whether an object has a specific property as its own (not inherited).
object
import { hasOwn } from 'rattail' const obj = { foo: 123 } hasOwn(obj, 'foo') // return true hasOwn(obj, 'bar') // return false
value
key
string
boolean