@vttforge/core / schemaHasResource
Function: schemaHasResource() ​
schemaHasResource(
schema,path):boolean
Whether a schema declares a resource at path: a SchemaField whose fields hold both value and max. Reads Foundry's own field objects, so it works on any schema, not only one built with resourceField().
Parameters ​
schema ​
unknown
path ​
string
Returns ​
boolean