PHP 7.4.33
Preview: clone.js Size: 496 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/graceful-fs/clone.js
'use strict'

module.exports = clone

var getPrototypeOf = Object.getPrototypeOf || function (obj) {
  return obj.__proto__
}

function clone (obj) {
  if (obj === null || typeof obj !== 'object')
    return obj

  if (obj instanceof Object)
    var copy = { __proto__: getPrototypeOf(obj) }
  else
    var copy = Object.create(null)

  Object.getOwnPropertyNames(obj).forEach(function (key) {
    Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
  })

  return copy
}

Directory Contents

Dirs: 0 × Files: 7
Name Size Perms Modified Actions
496 B lrw-r--r-- 2025-03-28 11:04:33
Edit Download
12.38 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
2.59 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
791 B lrw-r--r-- 2025-03-28 11:04:33
Edit Download
1.01 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
9.90 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
4.63 KB lrw-r--r-- 2025-03-28 11:04:33
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).