INNER CODE UNIT · JavaScript

getAvailableFunctionFromList

ensisoft/detonator · docu/OpenGL Camera_files/songho.js:263

function getAvailableFunctionFromList(element, names)
{
    if(!element) return null;

    for(let i = 0, count = names.length; i < count; ++i)
    {
        let name = names[i];
        if(element[name])   // if function exists, return the function name as string
            return name;
    }
    return null;            // if not found, return null
}



///////////////////////////////////////////////////////////////////////////////
// animation mode and interpolation
///////////////////////////////////////////////////////////////////////////////

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…