Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### functions
|
||||
---
|
||||
title: functions
|
||||
tags: object,function,intermediate
|
||||
---
|
||||
|
||||
Returns an array of function property names from own (and optionally inherited) enumerable properties of an object.
|
||||
|
||||
@ -23,4 +26,4 @@ function Foo() {
|
||||
Foo.prototype.c = () => 3;
|
||||
functions(new Foo()); // ['a', 'b']
|
||||
functions(new Foo(), true); // ['a', 'b', 'c']
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user