UNPKG

ymir-js

Version:

This toolkit is created to make it easier for you to develop games like chess, checkers, go, match 3 puzzle and more. It is still under development.

5 lines (3 loc) 124 B
const parseCoord = (coord: string): number[] => coord.split('|').map((n) => parseInt(n, 10)); export default parseCoord;