-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2653de
commit ba8a429
Showing
11 changed files
with
67 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
'use strict'; | ||
const uniqueRandomArray = require('unique-random-array'); | ||
const yes = require('./yes.json'); | ||
const no = require('./no.json'); | ||
|
||
const all = yes.concat(no).sort(); | ||
|
||
exports.yes = yes; | ||
exports.no = no; | ||
exports.all = all; | ||
exports.yesRandom = uniqueRandomArray(yes); | ||
exports.noRandom = uniqueRandomArray(no); | ||
exports.allRandom = uniqueRandomArray(all); | ||
import uniqueRandomArray from 'unique-random-array'; | ||
import yesWords from './yes-words.json' with {type: 'json'}; | ||
import noWords from './no-words.json' with {type: 'json'}; | ||
|
||
const allWords = yesWords.concat(noWords).sort(); | ||
|
||
const yesNoWords = {}; | ||
|
||
yesNoWords.yes = yesWords; | ||
yesNoWords.no = noWords; | ||
yesNoWords.all = allWords; | ||
yesNoWords.yesRandom = uniqueRandomArray(yesWords); | ||
yesNoWords.noRandom = uniqueRandomArray(noWords); | ||
yesNoWords.allRandom = uniqueRandomArray(allWords); | ||
|
||
export default yesNoWords; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.