Shared
table.focusedArray
function HRLib.table.focusedArray(
array: table<string, any>[],
focus: table<string, any>,
cb: fun(i: integer, curr: any)?
)Example
local array = {
{
ownerName = 'player_1',
cashBalance = 2500
},
{
ownerName = 'player_2',
cashBalance = 6000
},
{
ownerName = 'player_1',
cashBalance = 1050
}
}
HRLib.table.focusedArray(array, { ownerName = 'player_1' }, function(_, curr)
print(curr.cashBalance)
end) -- the output is two printed values, 2500 and 1050table.focusedHash
Example 1
Example 2
table.getHashLength
table.find
Example 1
Example 2
Example 3
table.deepclone
cloneStateBag
table.compare
table.getKeys
table.toString
Last updated