prototype-helper
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,1 +0,8 @@ | ||
export {}; | ||
interface Number { | ||
toComma(): string; | ||
ampersand(amp: number): number; | ||
safeDivision(value: number): number; | ||
safeMultiply(value: number): number; | ||
safeAdd(value: number): number; | ||
safeSubtract(value: number): number; | ||
} |
"use strict"; | ||
Number.prototype.toComma = function () { | ||
if (`$[this}`.length == 0) | ||
if (`${this}`.length == 0) | ||
return "0"; | ||
@@ -5,0 +5,0 @@ return `${this}`.toComma(); |
{ | ||
"name": "prototype-helper", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"private": false, | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"dependencies": { | ||
@@ -25,3 +27,3 @@ "consola": "^2.15.3", | ||
"test": "jest --detectOpenHandles --forceExit", | ||
"publish": "npm run build && npm publish" | ||
"publish": "yarn build && npm publish" | ||
}, | ||
@@ -28,0 +30,0 @@ "nodemonConfig": { |
@@ -20,3 +20,4 @@ { | ||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true | ||
"resolveJsonModule": true, | ||
"declaration": true | ||
}, | ||
@@ -23,0 +24,0 @@ "include": ["./src/**/*.ts"], |
Sorry, the diff of this file is not supported yet
21327
43
302