Skip to content

Instantly share code, notes, and snippets.

@PolyDevil
Created May 17, 2017 10:13
Show Gist options
  • Select an option

  • Save PolyDevil/8c731398dee86acb5f29f7f9aec88a44 to your computer and use it in GitHub Desktop.

Select an option

Save PolyDevil/8c731398dee86acb5f29f7f9aec88a44 to your computer and use it in GitHub Desktop.

Revisions

  1. Poly Devil created this gist May 17, 2017.
    5 changes: 5 additions & 0 deletions KissMiss.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    new Array(100)
    .fill(0)
    .map((e, i) => i + 1)
    .map(e => e % 3 === 0 ? (e % 5 === 0 ? 'MissKiss' : 'Miss') : e % 5 === 0 ? 'Kiss' : e)
    .map((e, i) => setTimeout(() => console.log(e), i * 50));