⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
collection-visit
/
View File Name :
index.js
/*! * collection-visit <https://github.com/jonschlinkert/collection-visit> * * Copyright (c) 2015, 2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var visit = require('object-visit'); var mapVisit = require('map-visit'); module.exports = function(collection, method, val) { var result; if (typeof val === 'string' && (method in collection)) { var args = [].slice.call(arguments, 2); result = collection[method].apply(collection, args); } else if (Array.isArray(val)) { result = mapVisit.apply(null, arguments); } else { result = visit.apply(null, arguments); } if (typeof result !== 'undefined') { return result; } return collection; };