can.deparam

  • function
 

Takes a string of name value pairs and returns a Object literal that represents those params.

can.deparam(params)

Parameters

  1. params {String}

    A string like "foo=bar&person[age]=3"

Returns

{Object}

A JavaScript Object that represents the params:

{
  foo: "bar",
  person: {
    age: "3"
  }
}

can.depararm will take any string and convert it into an Object literal that represents the string passed into it.