Skip to content

Commit

Permalink
added ES6 import method to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb authored Mar 5, 2018
1 parent d527bd0 commit 0adaf54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Sort an array by the given object property:

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

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

0 comments on commit 0adaf54

Please sign in to comment.