1.0.2 • Published 3 years ago
@ninjavid/truncate v1.0.2
At first you impor the module
const truncate = require('@ninjavid/truncate')
You call the function passing two parameters
- the chain (string)
- the position at which you want to cut the chain (int) .
example
let result = truncate("Australopithèque" , 5);
result
// Austr...