@tkss/rodash

0.0.21 • Public • Published

rodash

Lodash inspired Brightscript/ROPM utility for Roku apps. Currently supporting 150 utility functions!

build status monthly downloads npm version license Slack

Important

This project is not affiliated with the Tubitv/rodash project.

Installation

Using ropm

ropm install rodash@npm:@tkss/rodash

API Documentation (In Progress)

https://tkss-software.github.io/rodash/module-rodash.html

Usage Examples

Chunk

Brightscript

rodash_chunk(["a", "b", "c", "d"], 2)

Brighterscript

rodash.chunk(["a", "b", "c", "d"], 2)

Returns: [["a", "b"], ["c", "d"]]

Compact

Brightscript

rodash_compact([0, 1, false, 2, "", 3])

Brighterscript

rodash.compact([0, 1, false, 2, "", 3])

Returns: [1, 2, 3]

Shuffle & Slice

Brightscript

rodash_slice(rodash_shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)

Brighterscript

rodash.slice(rodash.shuffle([1,2,3,4,5,6,7,8,9,10]), 0, 4)

Returns: [8, 3, 7, 5]

Brighterscript Support

If imported into a project that leverages the Brighterscript compiler, you can use rodash. lookups with auto-complete. image

Development

Currently in development

Readme

Keywords

Package Sidebar

Install

npm i @tkss/rodash

Weekly Downloads

1

Version

0.0.21

License

MIT

Unpacked Size

121 kB

Total Files

5

Last publish

Collaborators

  • tylerattkss