@rbxts/tableutil
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@rbxts/tableutil

NPM

A simple table utility for roblox-ts

Updated since this release

Changes

API REMOVALS:

  • FastRemove, FastRemoveFirstValue, Map, Filter, Reduce, Find, Every, Some have been removed, as you should be using Array methods.
  • Assign has been removed as there is native TypeScript support for it ({...a, ...b, ...c})
  • Extend has been removed, as there is native TypeScript support for it ([...a, ...b])
  • FlatMap has been removed, as you can simply use [...a.map(mapFunction)]
  • Keys has been removed, as there is alternative packages that achieve this (see @rbxts/object-util)
  • EncodeJSON/DecodeJSON has been removed, it's better practice to use the HttpService methods.

Changelog

2.0.0

  • Updated to Knit v0.0.18-alpha
    • This removes certain APIs such as Print and IndexOf
    • This implements new APIs such as Reverse
  • Renamed the exported namespace to TableUtil (previously tableutil)

1.3.2

  • Converted Object into object for the types.

1.3.1

  • Fixed TableUtil.Sync incorrectly returning the original array in typings (#5)

Installation:

npm i @rbxts/tableutil

Example Usage

import tableutil from "@rbxts/tableutil";

// print a table
tableutil.Print(table, "Table Util Test", true); // recursive print `table` with title "Table Util Test"

Package Sidebar

Install

npm i @rbxts/tableutil

Weekly Downloads

6

Version

2.0.0

License

ISC

Unpacked Size

14.9 kB

Total Files

4

Last publish

Collaborators

  • overhash