Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 541 Bytes

File metadata and controls

31 lines (20 loc) · 541 Bytes

Example

const AssertionError = error<string>("AssertionError");

// ..

if(typeof value !== "number") {
  AssertionError("number", `Value ${value} should be of type number`);
}

Install

yarn add @the-minimal/error

Benchmark

  • Blue = baseline
  • Orange = Error
  • Green = @the-minimal/error

CPU

CPU benchmark

RAM

RAM benchmark