Skip to content

Instantly share code, notes, and snippets.

Krishna Sagar R solo474

Block or report user

Report or block solo474

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
solo474 / express-object.js
Last active Dec 8, 2016
JavaScript function for evolution object properties with '.' notation expression
View express-object.js
var expressObject = function(object,string){
return string.split('.').reduce(function(a,b){
return a[b];
View flatten-function.js
var flatten = function(array) {
return array.reduce(function(a,b) {
return a.concat(Array.isArray(b)
? flatten(b)
: [b] );
You can’t perform that action at this time.