remotedevdaily.com
Two Ways to omit properties from a Javascript Object - Remote Dev Daily
Recently I discovered that ES7(Ecma Script 7) has a really clever way of copying an object while omitting certain properties. I thought I would quickly show that and also how to do the same thing with lodash. With Lodash 123456import _ from 'lodash' const animalObject = { 'bear': 1, 'snake': '2', 'cow': 3 }; …