{
"editor.minimap.enabled": false,
"prettier.tabWidth": 6,
"prettier.singleQuote": true,
"prettier.arrowParens": "always",
"prettier.trailingComma": "all",
"prettier.eslintIntegration": true,
"prettier.printWidth": 150,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function numberToWords (n) { | |
const num = ["zero", "one", "two", "three","four","five","six", "seven", "eight", "nine"] | |
const first = ["ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "seventeen", "eighteen", "nineteen",] | |
const second = ["", "", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety"] | |
let output = [] | |
const sNumber = n.toString() | |
const len = sNumber.length | |
let str = '' | |
for (var i = 0; i < len; i += 1) { | |
output.push(+sNumber.charAt(i)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
"jsx_eslint_disable": { | |
"prefix": "eslint_disable_jsx", | |
"body": ["{/* eslint-disable */}", "{/* eslint-enable */}"], | |
"description": "Eslint Disable for JSX" | |
} |
OlderNewer