a collection of custom utils built following FP and complement ES6/7 features
import { trimObject } from '@financial-times/n-utils'; // partially import any function you need
npm install @financial-times/n-utils
all utils are pure functions that clone the original object and maintains its prototype
const trimmed = trimObject(obj); // remove any key whose value is undefined, null or empty string ''
const trimmed = onlyValues(obj); // trimObject and remove any key whose value is a function
const filtered = removeObjectKeys(obj)(['key1', 'key2']); // input can be [String] or String