repl.txt (707B)
1 2 {{alias}}( value, property ) 3 Tests if an object has a specified method name. 4 5 Value arguments other than `null` or `undefined` are coerced to objects. 6 7 Property arguments are coerced to strings. 8 9 The function only searches own properties. 10 11 Parameters 12 ---------- 13 value: any 14 Value to test. 15 16 property: any 17 Property to test. 18 19 Returns 20 ------- 21 bool: boolean 22 Boolean indicating if an object has a specified method name. 23 24 Examples 25 -------- 26 > var beep = { 'boop': function beep() { return 'beep'; } }; 27 > var bool = {{alias}}( beep, 'boop' ) 28 true 29 > bool = {{alias}}( beep, 'toString' ) 30 false 31 32 See Also 33 -------- 34