arrayuppercase
v1.0.1
Published
This package will convert all the elements in an array to uppercase
Downloads
3
Readme
arrayuppercase
arrayuppercase is a lightweight npm package that provides a utility function to convert all strings in an array to uppercase.
Installation
You can install arrayuppercase via npm:
npm install arrayuppercase
Usage
const arrayUppercase = require('arrayuppercase');
const inputArray = ['apple', 'banana', 'orange'];
const uppercaseArray = arrayUppercase(inputArray);
console.log(uppercaseArray);
// Output: ['APPLE', 'BANANA', 'ORANGE']
API
arrayUppercase(array)
array: An array of strings to be converted to uppercase. Returns: A new array with all strings converted to uppercase.
Error Handling
If the input provided to arrayUppercase is not an array, the function will throw an error indicating that the input is not an array.
License
This project is licensed under the MIT License - see the LICENSE file for details.