mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
refactor(common/modules/table): small refactor
This commit is contained in:
@@ -119,12 +119,11 @@ function ESX.Table.Concat(t1, t2)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ESX.Table.Join(t, sep)
|
function ESX.Table.Join(t, sep)
|
||||||
local sep = sep or ','
|
|
||||||
local str = ''
|
local str = ''
|
||||||
|
|
||||||
for i = 1, #t, 1 do
|
for i = 1, #t, 1 do
|
||||||
if i > 1 then
|
if i > 1 then
|
||||||
str = str .. sep
|
str = str .. (sep or ',')
|
||||||
end
|
end
|
||||||
|
|
||||||
str = str .. t[i]
|
str = str .. t[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user