464c7bceff386957b5d0f9789560e08aefcfa418
[platform/framework/web/crosswalk-tizen.git] /
1 define(['../lang/isPrimitive'], function (isPrimitive) {
2
3     /**
4      * get "nested" object property
5      */
6     function get(obj, prop){
7         var parts = prop.split('.'),
8             last = parts.pop();
9
10         while (prop = parts.shift()) {
11             obj = obj[prop];
12             if (obj == null) return;
13         }
14
15         return obj[last];
16     }
17
18     return get;
19
20 });