Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Readme: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
stscoundrel authored Jul 20, 2022
1 parent 3685696 commit 5767df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { getDictionary } from 'viking-language-dictionary'
const dictionary = getDictionary()

// Manipulate data as you wish -> perhaps get all words staring with 'o'
const oWords = dictionary.filter((entry) => entry.word.charAt(0) === 'o')
const oWords = dictionary.filter((entry) => entry.headword.charAt(0) === 'o')

// Or output a single word:
console.log(dictionary[8])
Expand All @@ -45,4 +45,4 @@ Individual words are returned in format of:

"Viking Language" is a book series by [Jesse L. Byock](http://www.viking.ucla.edu/), which teaches basics of Old Norse language. The books are accompanied by a small dictionary at the end, providing learners a place to look for translations of the books passages.

This library is sourced from a [blog post](https://oldnorse.org/2020/09/06/the-old-norse-dictionary/) by the books publisher, [Jules William Press](https://juleswilliampress.com/).
This library is sourced from a [blog post](https://oldnorse.org/2020/09/06/the-old-norse-dictionary/) by the books publisher, [Jules William Press](https://juleswilliampress.com/).

0 comments on commit 5767df9

Please sign in to comment.