Lines Matching refs:source
10 function roundingPrecisionFrom(source) { argument
11 return override(defaults(DEFAULT_PRECISION), buildPrecisionFrom(source));
35 function buildPrecisionFrom(source) { argument
36 if (source === null || source === undefined) {
40 if (typeof source == 'boolean') {
44 if (typeof source == 'number' && source == -1) {
48 if (typeof source == 'number') {
49 return defaults(source);
52 if (typeof source == 'string' && INTEGER_PATTERN.test(source)) {
53 return defaults(parseInt(source));
56 if (typeof source == 'string' && source == DEFAULT_PRECISION) {
60 if (typeof source == 'object') {
61 return source;
64 return source