Braydon Fuller
|
d3a8926bd9
|
Correct millis unit typo.
|
9 years ago |
Braydon Fuller
|
a50fccef4d
|
Changes behavior of `toJSON` to work as expected with `JSON.stringify`
- see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior
- Updates CONTRIBUTING with changes to Stardard Methods
- Aliases toJSON for toObject
- Removes all `fromJSON` methods, and many cases replaces with `fromObject`
- Constructors expect an object parsed via `JSON.parse` for JSON input
|
10 years ago |
Yemel Jardi
|
d922a625b9
|
Rename toFiat() to atRate()
|
10 years ago |
Yemel Jardi
|
e7839d9ba2
|
Add from/to Fiat methods to Unit class
|
10 years ago |
Esteban Ordano
|
be599e5a1b
|
Review Unit class
* Add 100% code coverage
* Add custom error code
* Linted source and test
* More descriptive test messages
|
10 years ago |
Braydon Fuller
|
dee30c749a
|
Unit: Fixed bug, stringified toJSON output
|
10 years ago |
Braydon Fuller
|
1858766627
|
Standardized toJSON, fromJSON, toString and fromString interfaces
|
10 years ago |
Yemel Jardi
|
1ae88eed7a
|
Add new test for string values
|
10 years ago |
Yemel Jardi
|
ab517cae9c
|
refactor double quote
|
10 years ago |
Yemel Jardi
|
d978160ddb
|
Utility for unit conversion
|
10 years ago |