Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance functions #137

Open
lixingwang opened this issue Feb 23, 2021 · 5 comments
Open

Enhance functions #137

lixingwang opened this issue Feb 23, 2021 · 5 comments

Comments

@lixingwang
Copy link
Contributor

  1. Math function
  2. Enhance array function to do deduplication.
@glcasal
Copy link

glcasal commented Feb 23, 2021

  1. Add Array.sort
  2. Add Activity/function for run js code

@ayh20
Copy link

ayh20 commented Feb 24, 2021

join as per your custring.join

equaivilents to functions in github.com/ayh20/flogo-components/functions/rtbutils

jsontostring
pathencode
urlencode
stringtodate

@lixingwang
Copy link
Contributor Author

Object functions
Get object Keys. -> object.keys(obj)
Get object values. -> object.values(obj)
Get value -> object.get(object, "key")
Set value -> object.set(obj, key, value)
length -> object.length(obj)

@lixingwang
Copy link
Contributor Author

We should also consider to add below array enhancement functions

  1. Seach value in the array and return index
  2. Delete an element from the array by value

@ayh20
Copy link

ayh20 commented Aug 13, 2021

i added a couple to my functions recently..

bytestohex ..... prints out the hex values of a bytes slice ie ABC = x"414243"
zipdata ... as it suggests ... zips a string, so for example zips a JSON string for a REST call
unzipdata .... unzips a string

My versions are here: https://github.com/ayh20/flogo-components/tree/master/functions/rtbutils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants