UNPKG

@softvisio/core

Version:
18 lines (14 loc) 441 B
import { inspect } from "node:util"; import NumericClass from "#lib/_browser/numeric/numeric"; export default class Numeric extends NumericClass { constructor ( value, options ) { if ( Buffer.isBuffer( value ) ) { value = value.toString( "latin1" ); } super( value, options ); } // public [ inspect.custom ] ( depth, options ) { return `[Numeric: ${ this.valueOf() }]`; } }