odin-default-js-exercises/node_modules/is-path-cwd/index.js

7 lines
139 B
JavaScript
Raw Normal View History

2017-12-15 18:56:14 +00:00
'use strict';
var path = require('path');
module.exports = function (str) {
return path.resolve(str) === path.resolve(process.cwd());
};