Skip to content

Commit ea1fe8a

Browse files
committed
First Version
1 parent 4abbab7 commit ea1fe8a

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

README.md

+65
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,67 @@
11
# changeArrayCase
2+
3+
Description
4+
-----------
5+
26
Change the letters in the supplied array to the specified case ( Lower or Upper )
7+
8+
Parameters to this function are :
9+
10+
Array which has to be modified
11+
12+
Case ( Accepted values are "tolower" / "toupper" )
13+
14+
Return value will be modified array based on the supplied case parameter
15+
16+
Install
17+
-------
18+
19+
npm install changeArrayCase
20+
21+
Usage
22+
-----
23+
24+
const stringToModify = require('changeArrayCase');
25+
26+
var upperStringArray = ["APPLE", "ORANGE", "LEMON"];
27+
28+
var lowerStringArray = ["apple", "orange", "lemon"];
29+
30+
31+
stringToModify(upperStringArray, "tolower");
32+
33+
// ["apple", "orange", "lemon"]
34+
35+
36+
stringToModify(lowerStringArray, "toupper");
37+
38+
// ["APPLE", "ORANGE", "LEMON"];
39+
40+
API
41+
---
42+
43+
changeArrayCase(inputStringArray, value)
44+
45+
inputStringArray
46+
47+
Type: string Array
48+
49+
String array to modify the letters in the array
50+
51+
52+
value
53+
54+
Type: string
55+
56+
Allowed values are tolower / toupper
57+
58+
Tests
59+
-----
60+
61+
'npm test'
62+
63+
LICENSE
64+
-------
65+
66+
MIT
67+

0 commit comments

Comments
 (0)