2013/Libraries/Fusion/Utility/needsDestruction.luau

15 lines
289 B
Plaintext

--!strict
--[[
Returns true if the given value is not automatically memory managed, and
requires manual cleanup.
]]
local typeof = require "../../../Modules/Polyfill/typeof"
local function needsDestruction(x: any): boolean
return typeof(x) == "Instance"
end
return needsDestruction