UNPKG

@amandaghassaei/vector-math

Version:

A minimal vector math library to handle 2D/3D translations and rotations, written in TypeScript.

13 lines 422 B
export function getStackTraceAsString() { try { throw new Error(''); } catch (error) { /* c8 ignore next 1 */ const stackString = error.stack || ''; const stack = stackString.split('\n').map((line) => line.trim()); stack.splice(0, 2); // Remove first two elements (just points to this function). return stack.join('\n'); } } //# sourceMappingURL=utils.js.map