Skip to content

Commit ec4c458

Browse files
authored
docs: fix examples
Signed-off-by: Athan <[email protected]>
1 parent 08fbf94 commit ec4c458

File tree

1 file changed

+2
-10
lines changed
  • lib/node_modules/@stdlib/assert/is-enumerable-property/lib

1 file changed

+2
-10
lines changed

lib/node_modules/@stdlib/assert/is-enumerable-property/lib/native.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,16 @@
3535
* 'boop': true
3636
* };
3737
*
38-
* var bool = isEnumerableProperty( beep, 'boop' );
38+
* var bool = isEnumerableProperty.call( beep, 'boop' );
3939
* // returns true
4040
*
4141
* @example
4242
* var beep = {
4343
* 'boop': true
4444
* };
4545
*
46-
* var bool = isEnumerableProperty( beep, 'hasOwnProperty' );
46+
* var bool = isEnumerableProperty.call( beep, 'hasOwnProperty' );
4747
* // returns false
48-
*
49-
* @example
50-
* var bool = isEnumerableProperty( null, 'boop' );
51-
* // throws <TypeError>
52-
*
53-
* @example
54-
* var bool = isEnumerableProperty( void 0, 'boop' );
55-
* // throws <TypeError>
5648
*/
5749
var isEnumerableProperty = Object.prototype.propertyIsEnumerable;
5850

0 commit comments

Comments
 (0)