Skip to content

Commit 0adaf54

Browse files
authored
added ES6 import method to README
1 parent d527bd0 commit 0adaf54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.verb.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Sort an array by the given object property:
44

55
```js
66
var arraySort = require('{%= name %}');
7+
// or for ES6 imports:
8+
import arraySort from 'array-sort'
79

810
var arr = [{foo: 'y'}, {foo: 'z'}, {foo: 'x'}];
911
arraySort(arr, 'foo');

0 commit comments

Comments
 (0)