mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
17 lines (16 loc) • 463 B
JavaScript
export const printDocs = {
name: 'print',
category: 'Utils',
syntax: [
'print(template, values)',
'print(template, values, precision)'
],
description: 'Interpolate values into a string template.',
examples: [
'print("Lucy is $age years old", {age: 5})',
'print("The value of pi is $pi", {pi: pi}, 3)',
'print("Hello, $user.name!", {user: {name: "John"}})',
'print("Values: $0, $1, $2", [6, 9, 4])'
],
seealso: ['format']
}