Question is in the title. I want to make an object that has all keys from 0 to 99 and all values should be false
.
I can figure out how to do this in JavaScript ES6 in a couple lines, but wondering if somebody can think of a one-line solution? I've tried with different lodash
methods such as keyBy
, map
, but have been unsuccessful so far.