Update mask.md

This commit is contained in:
atomiks
2018-01-01 22:06:24 +11:00
committed by GitHub
parent c66a5f1857
commit 22be54994e

View File

@ -1,6 +1,6 @@
### mask
It replace all but the last(first if `num` is negative) `num` (by default it is 4) characters by the provided mask(`'*'` by default).
It replace all but the last `num` (first if `num` is negative, by default `4`) characters by the provided masking character (`'*'` by default).
```js
const mask = (cc,num = 4,mask = '*') =>