It's all the same, PT 2...
ahh... actually this was going to be in response to all 'social' sites being the same and when I log ... nah I was looking at var container_class = ls.try("fluid") .fork( () => 'container', (x) ...

Source: DEV Community
ahh... actually this was going to be in response to all 'social' sites being the same and when I log ... nah I was looking at var container_class = ls.try("fluid") .fork( () => 'container', (x) => x.isTrue() ? "container-fluid" : "container" ); and again, this is me trying to apply these functional concepts to my particular domain of expertise, which is content management. WTF is going on here? tracking back I see let ls = Kvm.of(locals); I don't like that variable name and I think a helper like tryProp('prop', Kvm ...) or ... see here is where the endleess loop and eternal madness can start. again, bouncing between a PHP and a JavaScript implementation of the same concept. A single approach to programming through the lense of functional programming. if the method was tryProp, then I would understand what was going on at a glance. it's not.. it's not clear what is going on. then... I'm mis using "fork" it shoudl at least be called "fold" here... I periodically entertained "match"