returns an array of all paths in an object