The toMatrix() method of the CSSTransformValue interface returns a DOMMatrix object.
toMatrix()
MDN Reference