UNPKG

amos-tool

Version:

amos ui tool

13 lines (11 loc) 459 B
"use strict"; var forOwn = require("./_forOwn"), _utils = require("./utils"); module.exports = function(t, n) { if (!_utils.isObject(t)) return {}; var e, r = (n = [].concat.apply([], [].slice.call(arguments, 1)))[n.length - 1], i = {}; "function" == typeof r && (e = n.pop()); var o = "function" == typeof e; return n.length || o ? (forOwn(t, function(r, u) { -1 === n.indexOf(u) && (o ? e(r, u, t) && (i[u] = r) : i[u] = r); }), i) : t; };