1.0.2 • Published 4 years ago
jsmp-infra-vnmzk v1.0.2
It is homework1
Install it:
npm install jsmp-infra-vnmzk to install my package
Run npm build to compile code from ES6 to ES5
updateString takes a string as an argument and returns a mirrored string;
updateString('test'); return 'tset'
updateArray takes array, one argument(number) and other arguments and return array with modification.
updateArray(1, 2, 3, 4, 5, 6); return [ 1, 2, 3 , 4, 5, 6 ] updateArray(1, 2, 3, 4, 5, 6, 5); return 1, 2, 3, 4, 5, 6 ] updateArray(0, 0, 0, 10, 2, 'test', { num: 10 }); return 1, 1, 1