Sha256: 9ec5d8322fe74ccb82f45c7f5482d88e7d9dac791371a31083aff829924aea06
Contents?: true
Size: 393 Bytes
Versions: 69
Compression:
Stored size: 393 Bytes
Contents
define(['../array/forEach'], function (forEach) { /** * Create nested object if non-existent */ function namespace(obj, path){ if (!path) return obj; forEach(path.split('.'), function(key){ if (!obj[key]) { obj[key] = {}; } obj = obj[key]; }); return obj; } return namespace; });
Version data entries
69 entries across 69 versions & 2 rubygems