function_exists

function_exists($name)

Check whether a function with the given name exists.

Examples:

function-exists(lighten) => true

@function myfunc { @return "something"; }
function-exists(myfunc) => true

Parameters:

  • name (String) The name of the function to check.

Returns:

  • (Bool) Whether the function is defined.
doc_Sass
2016-11-11 13:09:07
Comments
Leave a Comment

Please login to continue.