-- Compiled with roblox-ts v1.2.7 local function values(collection) local arr = {} return arr end local function toArray(collection) local arr = {} for key in pairs(collection) do -- ▼ Array.push ▼ arr[#arr + 1] = key -- ▲ Array.push ▲ end return arr end local function setsEqual(collectionA, collectionB) if type(collectionA) == "table" and type(collectionB) == "table" then for item in pairs(collectionA) do if not (collectionB[item] ~= nil) then return false end end for item in pairs(collectionB) do if not (collectionA[item] ~= nil) then return false end end else return false end return true end local function last(collection, amount) local amountCalculated = math.min(amount, #collection) local newArray = table.create(amountCalculated) do local start = #collection - amountCalculated local _shouldIncrement = false while true do if _shouldIncrement then start += 1 else _shouldIncrement = true end if not (start < #collection) then break end local _arg0 = collection[start + 1] -- ▼ Array.push ▼ newArray[#newArray + 1] = _arg0 -- ▲ Array.push ▲ end end return newArray end return { values = values, toArray = toArray, setsEqual = setsEqual, last = last, }