0.0.35 • Published 8 months ago

@tkss/rodash v0.0.35

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

image

build status monthly downloads npm version license Slack


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.


Installation

Using ropm

ropm install rodash@npm:@tkss/rodash

API Documentation (In Progress)

https://tkss-software.github.io/rodash/index.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]

XOR

Brightscript

rodash_xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])

Brighterscript

rodash.xor([[3, 10, 100], [100, 10, 2], [10, 500, 3]])

Returns: [2, 500]

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

0.0.35

8 months ago

0.0.34

8 months ago

0.0.33

8 months ago

0.0.32

9 months ago

0.0.25

10 months ago

0.0.30

9 months ago

0.0.31

9 months ago

0.0.26

10 months ago

0.0.27

10 months ago

0.0.28

10 months ago

0.0.29

10 months ago

0.0.24

10 months ago

0.0.22

11 months ago

0.0.23

11 months ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.14

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.13

4 years ago

0.0.3

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago