Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import { data } from "./bullshits";
  2. import BullshitService from "./bullshitService";
  3. import {
  4. endsWith2Consonants,
  5. // hasBadChars,
  6. // endsWithBadChar,
  7. has4ConsecutiveVowelsOrConsonants
  8. // hasBadCombinationOfLetters
  9. } from "./wordrules";
  10.  
  11. //const { bullshits } = data;
  12.  
  13. const sentences = {
  14. passedSentences: [],
  15. discardedSentences: []
  16. };
  17.  
  18. let bullshits = await BullshitService.getData();
  19.  
  20. async function getBullshits() {
  21. let result = await BullshitService.getData();
  22. console.log(JSON.stringify(result.bullshits));
  23. bullshits = result.bullshits;
  24.  
  25. return result.bullshits;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement