Remove Items

Remove Line add-ons can find lots of different type of matches in board.

First it's need to be imported into project.

import { removeItems } from '<Path to BoardPlugin>';

Remove Items Arguments

parameters Type Default Weight Description
items number Array required Array containing items (i.e. sprite)
line number col optional
reverse number false optional
callback number - optional
isFallDown number true optional
fallCallback number - optional
isreplenish number true optional
replenishCallback number - optional
removeFrom Array or Index Number 0 optional

example

removeItems(items) // here items is an array containing sprite objects.