Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 394 Bytes

copyprops.md

File metadata and controls

23 lines (22 loc) · 394 Bytes
function buildCopy(o) {
  var oo = {};
  for (var prop in o) oo[prop] = o[prop];
  return oo;
}

buildCopy({xx: 10, yy: 20}); //:: {xx: number, yy: number}
[
  {
    "name": "buildCopy",
    "addr": "/buildCopy/",
    "kind": "f",
    "type": "? function(buildCopy.!0)",
    "lineno": 1
  }
]
buildCopy		/buildCopy/;"	f	lineno:1	type:? function(buildCopy.!0)