@stephansama snippets

A developer-focused platform to organize and share my favorite code snippets. Powered by Monaco Editor for the best coding experience.

Get Started
const best = 3;
const worst = 5;
const times = 1859;

const it = console.log;
const was =
  (_, ...vals) =>
  (num) =>
    [...Array(num).keys()].filter((e) => e % vals[0] === 0);

it(was`the ${best} of`(times));
it(was`the ${worst} of`(times));