Path.divide()

The Path.divide() method breaks a path apart in an array of atomic paths. An atomic path is a path that can’t be divided further and is always made up of one move + one drawing operation.

Signature

Javascript
array path.divide()

Example