12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- function DeepClone(toClone) {
- return JSON.parse(JSON.stringify(toClone));
- }
- function DecimalPlaceIsNonZero(input, place) {
- return !!GetDecimalInPlace(input, place);
- }
- function GetDecimalInPlace(input, place) {
- return Math.floor((input / (10 ** place)) % 10);
- }
- module.exports = {
- DeepClone: DeepClone,
- DecimalPlaceIsNonZero: DecimalPlaceIsNonZero,
- GetDecimalInPlace: GetDecimalInPlace,
- };
|