Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
add model solution
Commit Description:
add model solution
"use strict" ;
var create = Object . create , defineProperty = Object . defineProperty ;
module . exports = function ( t , a ) {
var x = { foo : "raz" , bar : "dwa" }, y ;
y = t ( x );
a . not ( y , x , "Returns copy" );
a . deep ( y , x , "Plain" );
x = { raz : "one" , dwa : "two" };
defineProperty ( x , "get" , {
configurable : true ,
enumerable : true ,
get : function () { return this . dwa ; }
});
x = create ( x );
x . trzy = "three" ;
x . cztery = "four" ;
x = create ( x );
x . dwa = "two!" ;
x . trzy = "three!" ;
x . piec = "five" ;
x . szesc = "six" ;
a . deep (
t ( x ),
{
raz : "one" ,
dwa : "two!" ,
trzy : "three!" ,
cztery : "four" ,
piec : "five" ,
szesc : "six" ,
get : "two!"
},
"Deep object"
);
a . deep (
t ({ marko : "raz" , raz : "foo" }, x , { szesc : "elo" , siedem : "bibg" }),
{
marko : "raz" ,
raz : "one" ,
dwa : "two!" ,
trzy : "three!" ,
cztery : "four" ,
piec : "five" ,
szesc : "elo" ,
siedem : "bibg" ,
get : "two!"
},
"Multiple options"
);
};
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings