- 3.5.0 - a JavaScript package on npm - Libraries.io through each function until it comes out the other side. In this step flow will take an array and step through the elements in the array. Support. Quite quickly you will … lodash & per method packages; lodash-es, babel-plugin-lodash, & lodash-webpack-plugin; lodash/fp; lodash-amd. Compare npm package download statistics over time: bowser vs flow typed vs jquery vs lodash vs react motion vs react transition group vs styled components Mastering JS. Embed Embed this gist in your website. Hello, I would like to use lodash/fp with Flow and was just wondering if anyone has done any work towards creating a Flow interface for lodash/fp? Further Reading. A Node-RED node run Sql queries. Compare npm package download statistics over time: flow vs lodash vs material ui vs react vs react bootstrap vs reactstrap vs typescript. Microsoft Flow, however, has one way of using it. Modular Lodash builds without the hassle. All code samples are my own, and are completely unrelated to Bank Of America’s code. If we’re using a modern browser, we can also use find, some, every and reduceRighttoo. These collection methods make transforming data a breeze and with near universal support. Trigger a flow with a Power BI data-driven alert. All gists Back to GitHub. Thanks again for reading! How Much Does Telemedicine and Healthcare Software Development Cost? When you develop flows for SharePoint in Microsoft Flow you will find yourself many times dealing with list items. GitHub Gist: instantly share code, notes, and snippets. @qiansen1386 Can't comment on "Ramda vs Lodash" (I am familiar with Lodash, but not so much with Ramda), but in Haskell (FP beast) I see it is common to use fn composition and actually prefer it even thought there are possibilities (in std. Those who prefer functional programming would tell you that the last version is more declarative. It’s a really powerful way to program, but can be overwhelming to get started with. Have a question about this project? )through each function until it comes out the other side. The business specified that contacts must be sorted by first name, filtered to remove any contacts without a phone number, it’s possible that contacts may have been added twice so only unique contact numbers should be shown, and the numbers must be formatted like (xxx)xxx-xxxx. README To calculate the time difference, we will use the built-in Date constructor. Instead of telling you how the function works, it tells you what it does! The lodash method `_.flow` exported as a module. I’m so glad you read my post! One of the trickier things is the SharePoint Get Items action. Sign in Sign up Instantly share code, notes, and snippets. For the Flow, my trigger is set to cases and I have a condition to check if the field is equal to true (ticked). (arguments): The functions to compose. Now that we see the expressive power of functional programming with Lodash I want to explore some more problems. Probably will be relatively trivial to convert the existing lodash interface that comes with Flow to one that works for lodash/fp, but I wanted to make sure it didn't exist already before I did it. We do something similar with function composition. $ cnpm install lodash . I have a Flow that's going out and getting group membership. They will have a single input and output. Use the compose action. I won’t go into details of describing each of those functions as Lodash docs are excellent in this matter. Use the compose action. The text was updated successfully, but these errors were encountered: After searching for compose I ended here. Install. When I put that output in an email, it formats like the following: [{"Value1":"Value2"},{"Value1":"Value2"}] I'd like to at the very least be able to have each record display … Methods that retrieve a single value or may return a primitive value will automatically end the chain returning the unwrapped value. Créez facilement des workflows automatisés avec Microsoft Power Automate (anciennement Microsoft Flow) pour améliorer votre productivité avec l’automatisation des processus métier Chaining and function composition with lodash / underscore. By Microsoft. The team made an early decision in … Further Reading. Unknown property lookup on unsealed objects is unsafe . Creates a function that returns the result of invoking the given functions with the this binding of the created function, where each successive invocation is supplied the … The only difference is the functions are changed to be immutable, auto-curried, iteratee-first, and data-last. Use the Data Operation - Compose action to save yourself from having to enter the same data multiple times as you're designing a cloud flow. Automated. Once it does, I'm selecting a few fields from those members and then using compose, with the output from my select step as the input for my compose step. So let’s look at a code example! De plus en plus utilisé par des géants du web comme Facebook, GitHub, Pinterest, ou encore Shopify, GraphQL a attiré ma curiosité, jusqu'à ce que je me décide à l'utiliser en production. Talk présenté le 23 juin 2015 au meetup Backbone.js Paris S01E07. Fp. As Flow gets smarter and smarter, it will figure out the types of properties in more scenarios. lodash.com; Learn more about verified organizations. Point de débat REST vs GraphQL dans cette conférence, mais du concret ! flow vs lodash vs material-ui vs react vs react-bootstrap vs reactstrap vs typescript. _.flow([funcs]) source npm package. 2 min read. Lodash is available in a variety of builds & module formats. Lodash is available in a variety of builds & module formats. Skip to content. GitHub Gist: instantly share code, notes, and snippets. Repositories Packages People Pinned repositories lodash. In this post we’ll look at how to use Lodash/fp to compose both our own functions, and the Lodash functions that you may already be using today! Before we start coding — lets be sure that we know what we’re talking about! Star 0 Fork 0; Code Revisions 2. Do you see the benefit that would come from eliminating side effects? Last active Apr 6, 2020. library and beyond) to use reversed functional composition. This thread has been automatically locked since there has not been any recent activity after it was closed. @qiansen1386 Can't comment on "Ramda vs Lodash" (I am familiar with Lodash, but not so much with Ramda), but in Haskell (FP beast) I see it is common to use fn composition and actually prefer it even thought there are possibilities (in std. I’d also love to hear from you, please feel free to connect with me on LinkedIn, Github, or Medium. Have you been reading JavaScript posts lately? to your account. Instant. Tutorials Newsletter eBooks ☰ Tutorials Newsletter eBooks. Flow function is one of the most useful in the whole library - it allows to compose new functions by chaining other functions one after another. By Microsoft. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Quick example: Counter. Run the following command in the root directory of your Node-RED install A modern JavaScript utility library delivering modularity, performance, & extras. We can pair them with arrow functions to help us write terse alternatives to the implementations offered by Lodash: It doesn’t stop here, either. These days I have been doing more reading on lodash and have found that I have not yet wrote a post on _.flow which can be used as a way to make a new function that is actually a bunch of functions that work together. Thankfully the most popular NPM package (with 48 million downloads this month) has a very useful functional programming package to help us get started! If you are familiar with Flow, you'll know that when an action or a trigger is created there are a set of various properties (Dynamic content) that are associated with each Flow building block, and in our case the newly added item properties are returned along with the trigger. Lodash has a `filter()` function that lets you filter an array using a custom function. node-red-contrib-sql 0.1.7. Still not on the docs, why ? npm install node-red-contrib-sql. Each function is expected to accept a single parameter. Share Copy sharable link for this gist. Created Feb 18, 2018. privacy statement. It then calls them from right to left, just the same as functions are called when you pass them as an argument. Flow and Lodash Integration and Automation Do more, faster. We’ll occasionally send you account related emails. Hi, I’m Justin Fuller. totally cool, just a bit hard to navigate at first. Since. Talk presented on June 23rd, 2015 at Backbone.js Paris S01E07 meetup. lodash reduce experiments for composing values. It hasn't changed yet , It's on master: https://github.com/lodash/lodash/blob/master/flow.js#L2 but for some reason not in the docs: https://lodash.com/docs/4.17.4#flow. Star 12 Fork 3 Code Revisions 33 Stars 12 Forks 3. Previously this function was called "compose", but has since been renamed to "flow". The idea of composing functions (or flow in lodash) is to build a largerfunction out of many smaller ones. This is my preference to help me troubleshoot issues, but you could set this to succeeded if you prefer. When we call formatData with data it takes the result of each function and passed it to the next function. Senior Consultant + Flow Enthusiast “It's easy to get started, create useful apps, and build workflows with very little effort.” Sandy U. From the support perspective, TypeScript is much better because major frontend frameworks like Vue, Angular, and Facebook’s own React all support TypeScript out of the box. The doc says . When it comes to something simple, that can work just fine. When I put that output in an email, it formats like the following: [{"Value1":"Value2"},{"Value1":"Value2"}] I'd like to at the very least be able to have each record display … Ramda vs Lodash. So we can use them to build our JSON. GitHub Gist: instantly share code, notes, and snippets. lodash/fp set and flow. The Lo-Dash function `_.compose` as a Node.js module generated by lodash-cli. Please open a new issue for related bugs. Technical Evangelist + Master Explainer “I can easily call multiple data flows, reducing the need to duplicate work and effort.” Joe U. Talk presented on June 23rd, 2015 at Backbone.js Paris S01E07 meetup. It also reads the same way as a promise chain. Use this to find out how to use your favorite Lodash methods in a functional/composition style! The first and most important thing is speed. It joined the Dojo Foundation in 2013, and via the jQuery Foundation and JS Foundation, is now part of the OpenJS Foundation.. Summary. JavaScript 47.6k 5.4k babel-plugin-lodash. The result of the last function is the result of the entire chain. Complementary Tools. compose is often the classic tool for people coming from an FP background as it reads in the same way as the manual composition, but flow reads sequentially left to right and is, therefore, the first choice of all other people. To make things clearer I want to define a few goals for our composed functions. We are also using lodash in shared modules that our applications consume. Unsealed objects allow new properties to be written at any time. The vanilla js Array.filter method can be used in a similar fashion, without the need for lodash. Complementary Tools. At this point you are hopefully wanting to dive in and begin using composition and Lodash/fp to solve problems, so below I wil include a link to the FP docs. I couldn't find anything on the web. Once it does, I'm selecting a few fields from those members and then using compose, with the output from my select step as the input for my compose step. Already on GitHub? Tutorials / Lodash / Lodash's `filter()` Function. The most common place and most visible place is within the Apply to each step. Installation. Lodash has a `filter()` function that lets you filter an array using a custom function. Contributing; Release Notes ; Wiki (Changelog, Roadmap, etc.) Within Flow you can find arrays everywhere. library and beyond) to use reversed functional composition. lodash.compose v2.4.1. package.json $ cnpm install lodash.compose . For example, we can build a Vue project with TypeScript by choosing the Typ… In this post we’ll look at how to use Lodash/fp to compose both our own functions, and the Lodash functions that you may already be using today! Use the configuration and dependencies to bootstrap the app. Retrieve any initial configuration (environment variables, command line arguments) and package then into a reusable object. SYNC missed versions from official npm registry.. lodash v4.17.20. SYNC missed versions from official npm registry. Lodash is a JavaScript library that helps programmers write more concise and maintainable JavaScript. I had the good fortune to chat with a Fullstack JavaScript engineer recently. flowRight is really weird. Erstellen Sie einfach automatisierte Workflows mit Microsoft Power Automate (ehemals Microsoft Flow), um die Produktivität durch die Automatisierung von Geschäftsprozessen zu verbessern. The team made an early decision in favor of flow.. Mastering JS. npm install recompose --save Documentation is a work-in-progress. Sometimes our app is using lodash-es, while some module is using the individual utilities (lodash.utilityName), and vice-versa. Think of it like lodash, but for React components. Compare npm package download statistics over time: flow vs lodash vs material ui vs react vs react bootstrap vs reactstrap vs typescript. Use the Data Operation - Compose action to save yourself from having to enter the same data multiple times as you're designing a cloud flow. lodash/fp set and flow. Previously this function was called "compose", but has since been renamed to "flow". compose is often the classic tool for people coming from an FP background as it reads in the same way as the manual composition, but flow reads sequentially left to right and is, therefore, the first choice of all other people. Pastebin is a website where you can store text online for a set period of time. … Chaining & Flow. It offers several pieces of behaviour, properly curried, so we can compose this way, which is called point free way. An entire app can be composed together through many smaller functions. Tutorials Newsletter eBooks ☰ Tutorials Newsletter eBooks. Talk presented on June 23rd, 2015 at Backbone.js Paris S01E07 meetup. Do you see how this example or any number of other examples could be strung together? The data goes in one end and flows (ah ha!) 2 - Array.filter vs _.filter. Lodash draws most of its ideas from Underscore.js and now receives maintenance from the original contributors to Underscore.js.. You’ll begin to see how easy it is, and hopefully you will see the safety that comes with this style of programming! 3.0.0. futil-js is a set of functional utilities designed to complement lodash. Build with clicks-or-code. Contributing; Release Notes ; Wiki (Changelog, Roadmap, etc.) To accomplish these goals we’ll be using a subset of the Lodash library called Lodash/fp. So let’s walk through each step of the code to unwrap what it does. However, for the sake of searchability, it would be really nice if there was some reference to the fact that this function used to be called "compose" or saying that what it does is "compose" functions together, as this is a very familiar term coming from functional programming. Lodash provides some functions for helping us write chained statements. Chaining and function composition with lodash / underscore. Flow ensures that reads are compatible with writes, but does not ensure that writes happen before reads (in the order of execution). All this may seem confusing right now. A tool such as PostMan to send HTTP POST requests with a JSON array to your flow. What would you like to do? In this example, you need to enter an array of digits—[0,1,2,3,4,5,6,7,8,9]—several times while you design your flow. It is similar to chaining, but the end result is a function rather than a value. flow; lodash; materi It's a bit odd to use the name flowRight instead of compose which is the standard name in functional languages for composing functions together. By Microsoft Power Automate Community . (All calculations were done on MacBook Pro in the latest Chrome browser, and on weaker devices with ol… In light of this I tend to think it is just a matter of taste/habit which approach to use. Before we start coding — lets be sure that we know what we’re talking about! Here's what you need to know. 2 - Array.filter vs _.filter. In this example, you need to enter an array of digits—[0,1,2,3,4,5,6,7,8,9]—several times while you design your flow. It also reads the same way as a promise chain. On Demand Demo: learn how the Tray Platform will grow your business. By clicking “Sign up for GitHub”, you agree to our terms of service and 2 min read. Create your free account to unlock your custom reading experience. 10. The exception is the right-most argument which can accept multiple parameters, as it will provide the signature for the resulting composed function. In light of this I tend to think it is just a matter of taste/habit which approach to use. This package is already installed when you have Lodash installed! All gists Back to GitHub. I have a Flow that's going out and getting group membership. Chaining and function composition with lodash / underscore. 38006 Create a task when an email is flagged. NPM. The data goes in one end and flows (ah ha! Sign in I am reading some code that uses _.flow() from lodash and the explanation in the docs just isn't making sense to me. I'm curious if this exists in any other library, which optimized in tying any way — offering mainly it up to the world as a better version of flow. The full documentation of TypeScript can be found here and the full documentation for Flow can be found here. I just spent an embarrassing amount of time looking for a function that does composition in the docs. Sign in Sign up Instantly share code, notes, and snippets. Each function in the chain passes its return value to the next. SortBy, uniqBy, filter, and map all accept the data last. Adding items, removing items, updating item it is all easy. https://github.com/lodash/lodash/blob/master/flow.js#L2. So first we tell the functions what to sort, filter, and map by, then later it accepts the data and returns the result. And compare them with JavaScript analogues. Successfully merging a pull request may close this issue. npm trends . GitHub Gist: instantly share code, notes, and snippets. Support. Edit, ok, they exist in the fp build, but not normally. Arguments [funcs] (…(Function|Function[])): The functions to invoke. Compare npm package download statistics over time: flow bin vs lodash vs ramda vs reason vs typescript Its return value will be provided as an argument to the function standing to the left, and so on. “Fp” for functional programming. But sometimes you want to be a little bit cleverer with your data and even use functions that remodel the data. Feedback is welcome and encouraged. Nachdem Ihr Flow ausgeführt wurde, wird die Ausgabe der Aktion Datenoperation – Verbinden eine Zeichenfolge mit den Adressen, die durch Semikolons verbunden sind, wie in der folgenden Abbildung dargestellt. In this post we’ll look at how to use Lodash/fp to compose both our own functions, and the Lodash functions that you may already be using today! Only by combining data-last curried functions with compose, we can write much more concise and reasonable code, and all with pure functions, and that is precisely what Ramda does, that underscore and lodash are doing wrong. _.flow _.flowRight _.identity _.iteratee _.matches _.matchesProperty _.method _.methodOf _.mixin _.noConflict _.noop _.nthArg _.over _.overEvery _.overSome _.property _.propertyOf _.range _.rangeRight _.runInContext _.stubArray _.stubFalse _.stubObject _.stubString _.stubTrue _.times _.toPath _.uniqueId. Using Functions within Flow using the Compose Action. When chained together they can be used as a single “action” on a set of data. I like to set the status of cancelled so I can tell if a Flow has executed any logic. I need to let you know that everything I’ve written here is my own opinion and is not intended to represent my employer in any way. Maybe you’ve noticed that functional programming is really popular right now. If you'd like to collaborate on this project, let me know. How Does Substring Work in Microsoft Flow? Lodash vs Underscore: Dash of the Titans,, but it's definitely past its heyday. Embed. Automated. At work, we are using lodash in our front end applications. The Lodash library exported as Node.js modules.. Add word "compose" to flow / flowRight documentation. Here's what you need to know. Using npm: $ npm i -g npm $ npm i --save lodash I have no issue whatsoever with the rename of this. I have no issue whatsoever with the rename of this. Compose yourself. _.compose(a, b, c) // returns function eq of a(b(c)) I do not like using compose because while it is written left to right, the execution happens right to left (or rather inside out). You are building a web page that displays contact information to users. So If we take a further look at the previous example then a Compose delivering an array can split by an Apply to each step: Flow is great, and just being able to point and click to build integrations is the thing that makes it so usable. Senior Power Platform Developer and Consultant + Automation Boss “Power Automate has saved me so much time. History. Notice the functions would be called from right to left, or inside to outside. We’ll look at two scenarios using features such as find and reduce. Microsoft Flow is no different in the fact that it offers us the use of this function, but the way we use it is a bit different than typical modern approaches. In a programming language like JavaScript, we can use the substring functionality in various ways. Methods that operate on and return arrays, collections, and functions can be chained together. Creates a lodash object which wraps value to enable implicit chaining. Each function in thechain passes its return value to the next.Let's see an example using lodash/fp:You can see that we've created a sanitise function from escape and trimand when the HTML string is passed in it flows through these two functionsbefore being returned as expected. fp.compose — a function that accepts any number of functions as arguments. futil-js is a set of functional utilities designed to complement lodash. Chaining et composition de fonctions avec lodash / underscore. The idea of composing functions (or flow in lodash) is to build a larger function out of many smaller ones. Composition is not limited to working with data. Same here. Normally when you compose functions you may do it like this (without knowing you are composing): In that example you are giving myFunction the result of myOtherFunction as it’s only argument. When it comes to something simple, that can work just fine. Here I created a typed version of lodash flow that offers more specific typing. Lodash installed enter an array and step through the steps of an application i just an... Github Gist: instantly share code, notes, and are completely unrelated to of... Where you can store text online for a set period of time common place and most visible is. Items, removing items, removing items, updating item it is all easy elements in the chain the! In various ways the result of the code to unwrap what it does what does. Like JavaScript, we are also using lodash in shared modules that our applications consume we start coding — be... From Underscore.js and now receives maintenance from the original contributors to Underscore.js returns ( function ) the. Paste tool since 2002 chain returning the unwrapped value to invoke on this project, me! The original contributors to Underscore.js documentation is a set period of time looking for a free github to... To compose June 23rd, 2015 at Backbone.js Paris S01E07 meetup lodash/fp ; lodash-amd called when develop! Now receives maintenance from the original contributors to Underscore.js some functions for helping us write statements! —Several times while you design your flow to open an issue and contact its maintainers and the community matter... Provided as an argument goes in one end and flows ( ah!!, collections, and just lodash compose vs flow able to point and click to build our JSON result of entire... Vs typescript is using the individual utilities ( lodash.utilityName ), and are completely unrelated to Bank of America s. Composed together through many smaller ones new properties to be written at any time $ i... The fp build, but you could set this to succeeded if you prefer as find and.... Adding items, removing items, removing items, removing items, updating item it similar. Using a custom function verwenden der Aktion „ Auswählen “ verwenden Sie die Aktion Datenvorgänge – Auswählen um... Point de débat REST vs GraphQL dans cette conférence, mais du concret a status of cancelled arguments [ ]... Example, you need to enter an array using a modern browser, we can the! And click to build a largerfunction out of many smaller functions it will provide the signature for the selected.... Receives maintenance from the original contributors to Underscore.js been automatically locked since there has not been any recent activity it! I created a typed version of lodash lodash compose vs flow that offers more specific typing 2015... We now have in ES6+ matters for a good user experience, and functions can be used as a “... Features such as find lodash compose vs flow reduce, etc. a flow that 's out... You filter an array of digits— [ 0,1,2,3,4,5,6,7,8,9 ] —several times while you design your flow up instantly share,... 'S definitely past its heyday written at any time Developer and Consultant + Automation Boss “ Power Automate has me... My no branch is very simple, i ’ d also love to hear from you, please feel to... I tend to think it is just a matter of taste/habit which to! Place is within the Apply to each step au meetup Backbone.js Paris S01E07 meetup LinkedIn! Same as functions are changed to be a little bit cleverer with your data and even use functions remodel... To your flow data it takes the result of the last version is more declarative vs material-ui vs react vs! Programming: a method of programming that focuses on using functions as first class variables called from to... That offers more specific typing accept multiple parameters, as it will provide the signature for the resulting function... There has not been any recent activity After it was closed together through many ones! That helps programmers write more concise and maintainable JavaScript that retrieve a single “ action ” a! Custom action for the selected file applications consume locked since there has not been any recent activity After it closed! Make only one exception: _.flow ( ) ` function that accepts number! Website where you can store text online for a good user experience, and just being able point! Vs typescript avec lodash / lodash / Underscore einem array zu transformieren cancelled so i can tell if flow! Me on LinkedIn, github, or inside to outside really powerful way to program but. A set of data Tray Platform will grow your business from eliminating side effects documentation is set. That displays contact information to users and snippets me know with the array! By choosing the Typ… chaining et composition de fonctions avec lodash / lodash lodash. Unsealed objects allow new properties to be immutable, auto-curried, iteratee-first, and snippets strung?! The status of cancelled so i can tell if a flow with a of! On this project, let me know Gist: instantly share code, notes, snippets! To set the status of cancelled so i can tell if lodash compose vs flow flow has any..., collections, and so on of taste/habit which approach to use reversed functional composition exercise: think the. Request may close this issue,, but has since been renamed ``. Sign in sign up instantly share code, notes, and snippets to succeeded if you 'd like to the! Compose i ended here have lodash installed set period of time looking for function! Is to build a largerfunction out of many smaller functions methods make transforming data a breeze and with universal... For example, you need to enter an array using a custom action for the composed. A largerfunction out of many smaller ones programmers write more concise and maintainable JavaScript examples! Or inside to outside something simple, i ’ m so glad you read my POST function ) the... Data last to connect with me on LinkedIn, github, or to... Npm $ npm i -g npm $ npm i -g npm $ npm i npm... Github, or inside to outside sync missed versions from official npm registry.. v4.17.20... Be a little bit cleverer with your data and even use functions that remodel the data goes in end! Function standing to the function standing to the next tool since 2002 similar! Vs typescript to explore some more problems ; lodash-es, babel-plugin-lodash, & ;... Backbone.Js Paris S01E07 meetup information to users array using a custom function clicking “ sign up for github,. Come from eliminating side effects made an early decision in … lodash lodash compose vs flow experiments for values... You see how this example or any number of functions as first class variables been! Past its heyday it 's definitely past its heyday method can be overwhelming to get started with 33. Issues, but can be chained together they can be implemented ( sometimes trivially ) with the rename of i. You read my POST which wraps value to the next methods in functional/composition! Sometimes our app is using lodash-es, babel-plugin-lodash, & extras our terms of service and statement. It does ( environment variables, lodash compose vs flow line arguments ): returns the new function. & extras the text was updated successfully, but it 's definitely its! More concise and maintainable JavaScript every and reduceRighttoo free account to open an issue and its... Compare npm package download statistics over time: flow vs lodash vs vs. By lodash-cli that 's going out and getting group membership browser, we will use the Date! Dash of the code to unwrap what it does with your data and even use functions remodel... Of many smaller ones we start coding — lets be sure that we know we... Lodash draws most of its ideas from Underscore.js and now receives maintenance the! Of composing functions ( or flow in lodash ) is to build our JSON: After searching compose. Example, you agree to our terms of service and privacy statement and smarter, it will provide signature! Can work just fine which wraps value to the function standing to the function works, it will the... Save documentation is a set of functional programming would tell you that the last function is expected to accept single... Lodash, but you could set this to succeeded if you 'd like to collaborate on this project, me! Individual utilities ( lodash.utilityName ), and snippets the same way as a Node.js module generated by lodash-cli, curried. The selected file programming would tell you that the last version is more declarative to... Had the good fortune to chat with a status of cancelled install lodash.compose an array of digits— 0,1,2,3,4,5,6,7,8,9... The chain passes its return value will automatically end the chain returning the unwrapped value lodash. Data it takes the result of each function until it comes out the other side Power of functional utilities to! Know what we ’ re using a custom action for the selected file ’ t go details! The data goes in one end and flows ( ah ha! modern browser, we can lodash compose vs flow!