selections([cb])

Returns the currently selected object(s)

Type: function

Parameter(s):

  • cb {Function} Optional:

    The callback function to call with each item in the selection. When this function returns false the loop stops. Passed arguments: item, loopCount.

Returns:

  • {Array}:

    Array of selected object(s).