isFile

Type:Function
Status:stable
Since:1.0.0
Platform:node
@blackbyte.sugar.node.is

This function check if the passed string path is a file or not

Params

  1. path*-String

    The path to check

Return

  1. -Boolean

    true if is a file, false if not

Example

import { isFile } from '@blackbyte/sugar/is';
isFile('something/cool');

Todo

  • testsnormal