Full threadnijiko·You can simplify this even further by using frameworks like lodash / underscore or ES6 native methods.View on HN