MCPcopy Create free account
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:71097–71105  ·  view source on GitHub ↗
(array, ...args)

Source from the content-addressed store, hash-verified

71095 return INDICES;
71096 }
71097 constructor(array, ...args){
71098 super(-0, -0, -0, -0, -0, -0, -0, -0, -0);
71099 if (arguments.length === 1 && Array.isArray(array)) this.copy(array);
71100 else if (args.length > 0) this.copy([
71101 array,
71102 ...args
71103 ]);
71104 else this.identity();
71105 }
71106 copy(array) {
71107 this[0] = array[0];
71108 this[1] = array[1];

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
identityMethod · 0.95

Tested by

no test coverage detected