Skip to content

Commit 477bd08

Browse files
authored
Add import statement to Readme.md
I had to search for how to import the library properly. I propose that the line 'import * as JsSearch from 'js-search';' is added to the js example section.
1 parent 94b9943 commit 477bd08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ objects to be searched.
3939
For example, a simple use of JS Search would be as follows:
4040

4141
```javascript
42+
import * as JsSearch from 'js-search';
43+
4244
var theGreatGatsby = {
4345
isbn: '9781597226769',
4446
title: 'The Great Gatsby',

0 commit comments

Comments
 (0)