Rodash is a Lodash inspired Brightscript/ROPM utility for Roku apps. Currently supporting over 200 utility functions!
This project is not affiliated with Lodash or the Tubitv/rodash project.
Using ropm
ropm install rodash@npm:@tkss/rodash
https://tkss-software.github.io/rodash/index.html
rodash_chunk(["a", "b", "c", "d"], 2)
rodash.chunk(["a", "b", "c", "d"], 2)
Returns: [["a", "b"], ["c", "d"]]
rodash_compact([0, 1, false, 2, "", 3])
rodash.compact([0, 1, false, 2, "", 3])
Returns: [1, 2, 3]
rodash_slice(rodash_shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)
rodash.slice(rodash.shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)
Returns: [8, 3, 7, 5]
rodash_xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])
rodash.xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])
Returns: [2, 500]
If imported into a project that leverages the Brighterscript compiler, you can use rodash. lookups with auto-complete.
Currently in development