dicom-microscopy-viewer-changed
Version:
Interactive web-based viewer for DICOM Microscopy Images
21 lines (16 loc) • 405 B
JavaScript
/* eslint-env node */
import { inspect } from "util";
/**
* @example
* ```
* Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect;
* ```
*/
export function customInspect(_deps, options) {
const length = this.length;
const array = [];
for (let i = 0; i < length; ++i) {
array[i] = this[i];
}
return `Float16Array(${length}) ${inspect(array, options)}`;
}