Tag: reduce

  1. Building a folder structure tree recursively with typescript and reduce

    Recenlty i was working on a new CLI tool for my company, where we would have to work a lot with file system and files manipulation. For one of the tasks i needed to have a method that would generate me a directory structure in JSON format with all child…

    on typescript recursive reduce