I need to check if an element is last child like this
Determining if the element is the last child of its parent
But I use cheerio instead of jquery (for lighter weight) on node.js
https://github.com/MatthewMueller/cheerio
It gave me error:
TypeError: Object XXXXXXX has no method 'is'
Can someone confirm? If so, what is the elegant way to check if a node is last child?
Thanks.