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 |
eordano
|
fcc9081ddd
|
Fix JSDocs from String to string
|
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
|
6d42e01718
|
Fix formatting issue with examples
|
10 years ago |
Esteban Ordano
|
d4b8c4adc6
|
Remove globals
|
10 years ago |
Esteban Ordano
|
9d0b5e04fe
|
Update Signature, URI, Unit
|
10 years ago |
Braydon Fuller
|
dee30c749a
|
Unit: Fixed bug, stringified toJSON output
|
10 years ago |
Braydon Fuller
|
cddd55afc4
|
URI/Unit: Added toObject method and changed toJSON to return a string
|
10 years ago |
Braydon Fuller
|
93502d1523
|
Fix naming
|
10 years ago |
Braydon Fuller
|
32ac9bb63e
|
Change utility naming
|
10 years ago |
Braydon Fuller
|
1858766627
|
Standardized toJSON, fromJSON, toString and fromString interfaces
|
10 years ago |
Yemel Jardi
|
ab517cae9c
|
refactor double quote
|
10 years ago |
Yemel Jardi
|
3208ca2a44
|
Allow creating instance without new
|
10 years ago |
Yemel Jardi
|
d978160ddb
|
Utility for unit conversion
|
10 years ago |