File tree 1 file changed +65
-0
lines changed
1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1
1
# changeArrayCase
2
+
3
+ Description
4
+ -----------
5
+
2
6
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
+
You can’t perform that action at this time.
0 commit comments