can.param

  • function
 

Serialize an object into a query string.

can.param(obj)

Parameters

  1. obj {Object}

    An array or object to serialize.

Returns

{String}

The serialized string.

Parameterizes an object into a query string like jQuery.param.

can.param({a: "b", c: "d"}) //-> "a=b&c=d"