• This project
    • Loading...
  • Sign in

fe / yoho-blk · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yoho-blk
  • public
  • helper
  • isY.js
  • replace hbs with webpack loader
    9256938c
    by xuqi
    2016-07-27 14:34:19 +0800  
    Browse Files
isY.js 248 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * 判断值是否是'Y'
 * @author: xuqi<qi.xu@yoho.cn>
 * @date: 2016/7/27
 */

module.exports = function(value, options) {
    if (value === 'Y') {
        return options.fn(this);
    } else {
        return options.inverse(this);
    }
};