location
Get the global location object for the current context.
    LOCATION([newLocation])
  
  Optionally sets, and returns, the location object for the context.
var locationShim = { path: '/' };
var LOCATION = require('can-globals/location/location');
LOCATION(locationShim);
LOCATION().path; // -> '/'
Parameters
- location {Object}:An optional location-like object to set as the context's location 
Returns
 {Object}: 
The location object for this JavaScript environment.
 GitHub
GitHub Twitter
Twitter