Find Match

Find Match add-ons can find lots of different type of matches in board.

First it's need to be imported into project.

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

FindMatch Arguments

parameters Type Default Weight Description
item number null required item for matching with others
matchAgainst Array 0 (the first board in boards array) optional You can pass items Array or control which items array to choose from in global config.
addValue Array [ ] optional You can pass additional values that would be used to check match along with selected item value.

Note

Besides above arguments, its uses other options defined in global config.

example

let matchItems = findMatch(item);

Types of Match

You can customize how it finds matches. The default is to find all the possible matches in all direction. But it's possible to customize match by configuring global.