xero.number-utility
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

xero.number-utility

Top file exports a default object NumberUtility.

Testing

Install all the local dependencies. We use jest for testing. You need to compile the TypeScript first if you make changes, so the script test will first compile and then run the tests.

NumberUtility.NumberTriangle

Usage. NumberTriangle is a class for collections of numbers structured into a triangle. For example, let x = new NumberTriangle([4, 15, 12, 9, 68, 62]). Here x represents a triangle of numbers of the form

    4
  15 12
9  68 62

The two numbers below and to the left and right of a number in the triangle are its children. For example, at index (0, 0) is number 4 and its children are at indexes (1,0) and (1,1) with values 15, 12.

More documation to come.

Readme

Keywords

none

Package Sidebar

Install

npm i xero.number-utility

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

417 kB

Total Files

29

Last publish

Collaborators

  • xerocross