javascriptutility
Reactive icon

JavaScript Common Utility

Stable version 1.0.2 (Compatible with OutSystems 11)
Uploaded
 on 17 September 2021
 by 
5.0
 (2 ratings)
javascriptutility

JavaScript Common Utility

Documentation
1.0.2

JavaScript Common Utility Offering below functionality –

1. ArrayFirstElement :_.first is an array method that returns the first element of an array. Passing n will return the first n elements of the array.


Parameters :

  • Array : Provide comma separated string e.g. 1,2,3,4,5,6
  • : Number of elements will show in return function
  • Result : Output of the Clent Action


2. ArrayLastElement :_.last is an array method that returns the first element of an array. Passing n will return the first n elements of the array.

Parameters :

  • Array : Provide comma separated string e.g. 1,2,3,4,5,6
  • : Number of elements will show in return function
  • Result : Output of the Clent Action


3. ArrayUniqElement :_.uniq is an array method that that produces a duplicate-free version of the array

Parameters: :

  • Array : Provide comma separated string e.g. 1,2,3,4,5,6
  • Result : Output of the Clent Action


4. Base64ToString : Base64 encoded value to convert in plain string decode.  

Parameters :

  • Base64String : Encoded Base 64
  • PlainText : Output of the Clent Action in plain text


5. StringToBase64 : Plain string value to convert in Base64 encode

Parameters :

  • PlainText : plain text
  • EncodedBase64 : Output of the Clent Action in encoded base64



6. BinaryToBase64 : Binary data decoded to Base64 encoded.

Parameters :

  • BinaryData : Binary Data decoded to Base64 encoded.
  • EncodedBase64 : Output of the Clent Action in encoded base64


7. Base64ToBinary : Base64 value encoded to binary decoded.

Parameters :

  • EncodedBase64 : Encoded Base64 value  
  • BinaryData : Output of the Clent Action in Binary Data decoded fromBase64.

8. JsonButify: Json string formatting in readable format

Parameters :

  • JsonString : Json String value  
  • ButifyJsonString: Output of the Clent Action is Butify Json string.


9. JsonMinify: Json string removing the white spaces reduce the size.

Parameters :

  • JsonString : Json String Value  
  • ButifyJsonString: Output of the Clent Action is Butify Json string.


10. JsonToXML: Json to Xml format

Parameters :

  • JsonString : Json String Value  
  • XmlString: Output of the Clent Action is Xml string.



11. FindDuplicateWord : Find Duplicated Word in string 

Parameters :

  • InputString : Json String Value  
  • RepeatedWord: Output of the Clent Action is Repeated Word.


12. FindRepeatedChar : Find Repeated Character


Parameters :

  • InputString : Json String Value  
  • RepeatedChar: Output of the Clent Action is Repeated Char.

13. JoinString : Join the list to single string 

Parameters :

  • Seperator: Seperator like &,%,$,# etc  
  • SplitList: Provide Split List.
  • JsonString : Output of the Clent Action is Json String 


14. SplitString : String( having the separator value) convert to list 


Parameters :

  • Seperator: Seperator like &,%,$,# etc  
  • InputString : Input string separated by provided character.
  • SplitList : Output of the Clent Action is SplitList