How to calculate Laplacian Variance in OpenCV js?

Solution for How to calculate Laplacian Variance in OpenCV js?
is Given Below:

I am try to implement Blur detection using OpenCV but I cannot find any equivalent for the below statement in OpenCV js :
cv2.Laplacian(image, cv2.CV_64F).var()

Is there any other way to calculate variance ?