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
8 lines • 429 B
JavaScript
export var 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: $1, $2, $3", [6, 9, 4])'],
seealso: ['format']
};