function createRestrictions(defs) {
    return (defs || []).map(createRestriction)
}
Create restrictions.
@param {(string | DefinitionData | GlobDefinition)[]} defs Definitions.
@returns {(Restriction | GlobRestriction)[]} Created restrictions.