mathjs/test/node-tests/esmApp.js
2024-05-22 08:46:14 +02:00

6 lines
200 B
JavaScript

// TODO: would be nice to call '../../' so we know for sure ESM is correctly exported
import { sqrt, format } from '../../lib/esm/index.js'
console.log(format(sqrt(4)))
console.log(format(sqrt(-4)))