ESODecoded

IsItemJunk

ESO Lua API function — used by 45 of the 3,030 addons we indexed (combined 9,352,285 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

IsItemJunk([Bag|#Bag] bagId, integer slotIndex)

Returns: bool junk

Real usage — from Advanced Filters - Updated (Inventory sub- & dropdown plugin filters)

local isInTab   = ZO_IsElementInNumericallyIndexedTable
local isij      = IsItemJunk
local gileqt    = GetItemLinkEquipType

Short excerpt from the shipping addon Advanced Filters - Updated (Inventory sub- & dropdown plugin filters)its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Advanced Filters - Updated (Inventory sub- & dropdown plugin filters)2,602,223
ESO Master Recipe List2,130,985
Auto Category - Revised1,180,586
Dustman1,178,205
Lootdrop, Continued (All in One)1,145,178
LootDrop Reborn192,278