Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

remove multiple elements from list

item_list = ['item', 5, 'foo', 3.14, True]
list_to_remove = ['item', 5, 'foo']

final_list = list(set(item_list) - set(list_to_remove))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #multiple #elements #list
ADD COMMENT
Topic
Name
2+2 =