Home:ALL Converter>Interface segregation principle in JavaScript

Interface segregation principle in JavaScript

Ask Time:2019-02-08T21:10:49         Author:Barney

Json Formatter

Interface segregation principle, as one of SOLID, is pretty understandable, but how to implement it in pure JavaScript without using any typing system like TypeScript or Flow?

Or, even more general, is there any good practice how to "simulate" interfaces in JS to separate API from implementation?

Author:Barney,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/54593174/interface-segregation-principle-in-javascript
yy