These docs are for an old release. View the v7 docs

getResourceById

A method that retrieves a specific Resource Object in memory.

.getResourceById( resourceId )

If no resource matches the given resourceId, will return null.