PHP Classes

File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/to-int.js

Recommend this page to a friend!
  Classes of James Brows   Coffee CMS   CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/to-int.js   Download  
File: CoffeeCMS/contents/themes/cfnews/cfnews-html/assets/moment/src/lib/utils/to-int.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Coffee CMS
Content management system using MVC based themes
Author: By
Last change:
Date: 3 years ago
Size: 282 bytes
 

Contents

Class file image Download
import absFloor from './abs-floor'; export default function toInt(argumentForCoercion) { var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { value = absFloor(coercedNumber); } return value; }