$class_names = wrap($data) ->tryProp('page_config') ->bind(function (Lst $x) { return $x->filter(function ($y) { return $y['_type'] === 'header'; }) ->tryHead(); }) ->bind(function ($x) { return $x->tryProp('header_attrs'); }) ->bind(function ($x) { return $x->filter(function ($y) { return $y['_type'] === 'class'; }) ->tryHead(); }) ->bind(function ($x) { return $x->tryProp('class'); }) ->getOrEl
Never Say Final.. ha.. the last.. or...
lray138·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.