Home

function: getUrlFileExtension


getUrlFileExtension(url: string): string, undefined

Get type of the image by regexp for extension. Returns undefined for unknown extensions.

Params:

Name Type Attribute Description
url

the image path

Returns:

string, undefined

  {
    "comment": "/**\n * Get type of the image by regexp for extension. Returns undefined for unknown extensions.\n *\n * @memberof PIXI.utils\n * @function getUrlFileExtension\n * @param {string} url - the image path\n * @return {string|undefined} image extension\n */",
    "meta": {
        "range": [
            3845,
            4090
        ],
        "filename": "index.js",
        "lineno": 159,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\pixi.js\\pixi.js-repo\\src\\core\\utils",
        "code": {}
    },
    "description": "

Get type of the image by regexp for extension. Returns undefined for unknown extensions.

", "memberof": "PIXI.utils", "kind": "function", "name": "getUrlFileExtension", "params": [ { "type": { "names": [ "string" ] }, "description": "

the image path

", "name": "url" } ], "returns": [ { "type": { "names": [ "string", "undefined" ] }, "description": "

image extension

" } ], "scope": "static", "longname": "PIXI.utils.getUrlFileExtension", "___id": "T000002R004376", "___s": true, "filepath": "core\\utils\\index.js" }