Accept object or array as parameters