Commit Graph

18 Commits

Author SHA1 Message Date
Linden
cc6aed591f chore: adjust links 2025-03-29 21:46:58 +11:00
Linden
fb2225e373 chore: add copyright notices to each file
Some people accidentally, mistakenly, and without any malicious intent forget to attribute code from this resource to its source. This change will hopefully assist people, so that they do not make that mistake again.
2025-03-18 18:46:09 +11:00
Slyy
cf5423e42f feat(table): added table.shuffle (#718) 2025-03-07 15:16:42 +11:00
Stan
d142d8d2ee fix(table): respect falsey value for addDuplicateNumbers (#672) 2025-01-16 20:19:48 +11:00
Linden
d4bb2ab7b3 fix(table): regression in contains
Other changes are just whitespace.
2024-10-16 09:08:18 +11:00
Guru Saran
4c460e0bd9 refactor(table): improve performance of contains, matches, and merge (#647) 2024-10-01 18:51:52 +10:00
synth444
080a9c2442 feat(table/merge): add option to replace duplicate number keys (#581) 2024-05-21 05:48:32 +10:00
Linden
9d98b9aada chore: types
mostly types anyway.
2023-07-31 16:29:27 +10:00
Jag
65a799071a chore: various fix-ups from docs clean-up (#363)
- Add in missing js functions
  - getCurrentRadialId
  - requestScaleformMove
- Change up math.tohex to maintain lowercase `0x` prefix
- Add missing fields
- Removed extra whitespaces

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-07-21 13:54:29 +02:00
Linden
8ec19cf263 feat(imports/table): readonly tables 2023-05-28 15:14:52 +10:00
Linden
361ce6cca6 chore(imports/table): some types and annotations 2023-05-09 09:04:45 +10:00
DokaDoka
fe58a4893f feat(table): limited merge function
adds number values and overrides everything else
2023-01-16 02:57:03 +11:00
Linden
26538b8148 refactor(imports): assign modules directly to lib namespace
Mostly a change for improved intellisense with sumneko lua.
Includes some type fixes and deprecation notices.
2022-09-14 01:20:50 +10:00
Linden
e9f64c53e6 feat(table): add recursive clone function
table.clone creates a soft copy of an existing table (any tables inside the table will still be references).

This sets up a basic loop to clone any tables within a table and create deep copies.
2021-11-22 08:55:43 +11:00
Linden
7c41ac5d6e refactor(table): revert to old match function
Going to need some work to accurately compare some table types, but this is better for the intended purpose.
2021-11-14 03:43:06 +11:00
Linden
6aede19f4e fix(table): correctly check if table contains value for non-tables
Only strings were allowed through this initial check, but we want non-table values to check if v = value.
2021-11-14 01:42:36 +11:00
Linden
5a925695bc refactor(table): change match to matches 2021-11-12 10:26:49 +11:00
Linden
901cb381b4 feat(table): add functions to the standard table lib
Can overwrite the default table functions with `table = import 'table'`, adding functions to check if value(s) exist or match a table.
2021-11-12 10:16:16 +11:00