/*! * to-object-path <https://github.com/jonschlinkert/to-object-path> * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */'use strict';vartypeOf=require('kind-of');module.exports=functiontoPath(args){if(typeOf(args)!=='arguments'){args=arguments;}returnfilter(args).join('.');};functionfilter(arr){varlen=arr.length;varidx=-1;varres=[];while(++idx<len){varele=arr[idx];if(typeOf(ele)==='arguments'||Array.isArray(ele)){res.push.apply(res,filter(ele));}elseif(typeofele==='string'){res.push(ele);}}returnres;}