Server IP : 162.213.251.212 / Your IP : 52.15.138.13 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/public_html/easybuyer/node_modules/object.omit/ |
Upload File : |
/*! * object.omit <https://github.com/jonschlinkert/object.omit> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var isObject = require('is-extendable'); module.exports = function omit(obj, props, fn) { if (!isObject(obj)) return {}; if (typeof props === 'function') { fn = props; props = []; } if (typeof props === 'string') { props = [props]; } var isFunction = typeof fn === 'function'; var keys = Object.keys(obj); var res = {}; for (var i = 0; i < keys.length; i++) { var key = keys[i]; var val = obj[key]; if (!props || (props.indexOf(key) === -1 && (!isFunction || fn(val, key, obj)))) { res[key] = val; } } return res; };