UNPKG

react-lines-ellipsis

Version:

Simple multiline ellipsis component for React.JS

16 lines (14 loc) 285 B
function omit(obj, omittedKeys) { if (!obj || typeof obj !== 'object') { return obj; } var ret = {}; Object.keys(obj).forEach(function (key) { if (omittedKeys.indexOf(key) > -1) { return; } ret[key] = obj[key]; }); return ret; } exports.omit = omit;