Can anyone solve this in nodejs
Write a function returning boolean that takes 2 string arguments - filename and pattern - that returns whether the filename matches the pattern. The pattern is in the form used in dos/windows/unix shell where * matches any number of characters (0-n) in nodejs.
some use cases are: filename --> XYZXYZ pattern --> XY*Z
filename --> Tilnash patter --> *nash
filename --> Tinash patter --> Tnh
filename --> Tinash patter --> T*