Similar to Array.join but filters out null and undefined items.
The type of data to join.
The delimiter that separates the items.
The items to join.
A string that joins the items that are defined, separated by delimiter.
// 'a b d'const joinBySpace = joinDefined(' ', 'a', 'b', ['c', false], null, undefined, ['d', true]);// (Empty String)const joinEmpty = joinDefined('?'); Copy
// 'a b d'const joinBySpace = joinDefined(' ', 'a', 'b', ['c', false], null, undefined, ['d', true]);// (Empty String)const joinEmpty = joinDefined('?');
Similar to Array.join but filters out null and undefined items.