2020-03-06 08:35:03 +01:00
fix
2020-03-04 13:31:32 +01:00
2020-03-04 12:13:28 +01:00
fix
2020-03-04 13:31:32 +01:00
2020-03-04 12:13:28 +01:00
2020-03-04 12:13:28 +01:00
2020-03-04 12:13:28 +01:00
2020-03-04 12:13:28 +01:00
fix
2020-03-04 13:02:46 +01:00
2020-03-06 08:35:03 +01:00
2020-03-04 21:23:48 +01:00

Utilities

General helper functions

const util = require('@scode/utilities');

// cut off decimal places to a specified point
util.truncate_decimal(12.345678, 2);
// returns 12.34

// will return null instead of throwing on invalid json
util.try_parse_json('{{foo');
Description
No description provided
Readme 357 KiB
Languages
JavaScript 100%