How to use the hash function from is

Find comprehensive JavaScript is.hash code examples handpicked from public code repositorys.

84
85
86
87
88
89
90
91
92
93
if (deep && copy && (is.hash(copy) || (copyIsArray = is.array(copy)))) {
  if (copyIsArray) {
    copyIsArray = false;
    clone = src && is.array(src) ? src : [];
  } else {
    clone = src && is.hash(src) ? src : {};
  }

  // Never move original objects, clone them
  setProperty(target, name, extend(deep, clone, copy));
fork icon21
star icon128
watch icon12