https://medium.com/@AbbasPlusPlus/es6-array-helper-functions-every-developer-should-know-e8332ebb694a